mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-27 17:20:40 +00:00
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:
parent
31401f9b00
commit
b5dd7baa08
|
@ -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,
|
||||
|
|
|
@ -75,6 +75,12 @@
|
|||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
&.oo-ui-flaggedElement-unseen,
|
||||
|
|
Loading…
Reference in a new issue