Item label can now use overflow hidden

Since the icon is applied to the link element it is now possible
to apply overflow hidden to the label itself when its wrapped in
a span.

Bug: T264339
Change-Id: Ifdc1d152702c1f5338fd2969cccf07971d622fc7
This commit is contained in:
jdlrobson 2020-10-19 10:39:21 -07:00
parent 31401f9b00
commit b5dd7baa08
2 changed files with 8 additions and 0 deletions

View file

@ -1103,6 +1103,7 @@ class EchoHooks implements RecentChange_saveHook {
'text' => $alertText,
'active' => ( $url == $title->getLocalURL() ),
'class' => $alertLinkClasses,
'text-wrapper' => 'span',
'data' => [
'counter-num' => $alertCount,
'counter-text' => $alertFormattedCount,
@ -1118,6 +1119,7 @@ class EchoHooks implements RecentChange_saveHook {
'text' => $msgText,
'active' => ( $url == $title->getLocalURL() ),
'class' => $msgLinkClasses,
'text-wrapper' => 'span',
'data' => [
'counter-num' => $msgCount,
'counter-text' => $msgFormattedCount,

View file

@ -75,6 +75,12 @@
visibility: hidden;
}
}
span {
overflow: hidden;
width: 100%;
display: inline-block;
}
}
&.oo-ui-flaggedElement-unseen,