mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 08:20:02 +00:00
Allow the ref re-use sub-menu options to wrap
We discovered that the label can be really long depending on the language. On mobile, where the screen is quite narrow it seems more useful to let it wrap. In this context it's even more relevant, because the options you can choose from might only differ in the last parts of the message. Bug: T375053 Change-Id: I9ec111ab1b80843f993d605ff11a1702c3d7b37c
This commit is contained in:
parent
c68496d327
commit
bcd76a24c4
|
@ -65,6 +65,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
.ve-ui-mwReferenceResultsReuseOptionsItem .oo-ui-menuOptionWidget > .oo-ui-labelElement-label {
|
||||
white-space: initial;
|
||||
}
|
||||
|
||||
// FIXME: T375053 Should just be temporary to test some UI changes
|
||||
.ve-ui-mwReferenceSearchReuseHacks .ve-ui-mwReferenceResultWidget {
|
||||
display: flex;
|
||||
|
|
|
@ -219,6 +219,7 @@ ve.ui.MWReferenceSearchWidget.prototype.buildReuseOptionsMenu = function ( ref )
|
|||
icon: 'ellipsis',
|
||||
invisibleLabel: true,
|
||||
menu: {
|
||||
classes: [ 've-ui-mwReferenceResultsReuseOptionsItem' ],
|
||||
horizontalPosition: 'end',
|
||||
items: [
|
||||
new OO.ui.MenuOptionWidget( {
|
||||
|
|
Loading…
Reference in a new issue