mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
fix: handle focus-within of the forum reactions in Safari
This commit is contained in:
@@ -157,7 +157,7 @@ final class PostUi(helpers: Helpers, bits: ForumBits):
|
||||
val canActuallyReact = canReact && ctx.me.exists(me => !me.isBot && !post.isBy(me))
|
||||
val allReactionsVisible =
|
||||
ForumPost.Reaction.list.forall(r => (~post.reactions.flatMap(_.get(r))).nonEmpty)
|
||||
div(cls := List("reactions" -> true, "reactions-auth" -> canActuallyReact))(
|
||||
div(cls := List("reactions" -> true, "reactions-auth" -> canActuallyReact), tabindex := -1)(
|
||||
(canActuallyReact && !allReactionsVisible).option(
|
||||
button(cls := "reactions-toggle", tpe := "button", dataIcon := Icon.PlusButton)
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user