fix mini follow button in some languages - closes #9695

explorer-xhr-3
Thibault Duplessis 2021-10-27 08:36:11 +02:00
parent 0818822bb9
commit ab923ad559
2 changed files with 7 additions and 3 deletions

View File

@ -16,11 +16,14 @@ object mini {
)(implicit ctx: Context) =
relation match {
case None if followable && !blocked =>
val name = trans.follow.txt()
val isLong = name.sizeIs > 8
a(
cls := "btn-rack__btn relation-button text",
cls := s"btn-rack__btn relation-button${!isLong ?? " text"}",
dataIcon := "",
href := s"${routes.Relation.follow(userId)}?mini=1"
)(trans.follow())
href := s"${routes.Relation.follow(userId)}?mini=1",
title := isLong option name
)(!isLong option name)
case Some(true) =>
a(
cls := "btn-rack__btn relation-button text",

View File

@ -21,6 +21,7 @@
cursor: pointer;
border-right: $border;
color: $c-font;
white-space: nowrap;
&:hover {
@extend %metal-hover;