fix mini follow button in some languages - closes #9695
parent
0818822bb9
commit
ab923ad559
|
@ -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",
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
cursor: pointer;
|
||||
border-right: $border;
|
||||
color: $c-font;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
@extend %metal-hover;
|
||||
|
|
Loading…
Reference in New Issue