Stop hide unused label from overflowing

Will implicitly set a max width for the button due to the margin.
Long words will break in the middle of the word.

Also includes a shorter label.

Bug: T300008
Change-Id: I37505af8383d8c0c2bd4af3987ec5e2a3049688a
This commit is contained in:
WMDE-Fisch 2022-04-27 14:00:39 +02:00
parent e7e35a8e38
commit 4377893297
3 changed files with 11 additions and 7 deletions

View file

@ -199,10 +199,10 @@
"visualeditor-dialog-transclusion-contextitem-description": "Generated from: $1",
"visualeditor-dialog-transclusion-contextitem-loading": "Loading…",
"visualeditor-dialog-transclusion-expand-options": "Show options",
"visualeditor-dialog-transclusion-filter-hide-unused": "Hide unused fields",
"visualeditor-dialog-transclusion-filter-hide-unused": "Hide unused",
"visualeditor-dialog-transclusion-filter-no-match": "No matches found",
"visualeditor-dialog-transclusion-filter-placeholder": "Find field",
"visualeditor-dialog-transclusion-filter-show-all": "Show all fields",
"visualeditor-dialog-transclusion-filter-show-all": "Show all",
"visualeditor-dialog-transclusion-filter-title": "Parameter search for $1",
"visualeditor-dialog-transclusion-help-title": "Template editing support",
"visualeditor-dialog-transclusion-help-message": "Templates provide formatting for content. This editor shows what options a template provides on the left and values can then be added to those options on the right.",

View file

@ -218,10 +218,10 @@
"visualeditor-dialog-transclusion-contextitem-description": "Message shown to an editor when they click on a template or group of templates that form a transclusion, listing the template(s) from which the transclusion is constructed.\n\n* $1 the name of the template, or a list of the names of the templates if there are multiple.\n* $2 - number of templates for PLURAL support.",
"visualeditor-dialog-transclusion-contextitem-loading": "Replaces the label of the edit button as long as the transclusion dialog loads, which might take a second.",
"visualeditor-dialog-transclusion-expand-options": "Label for button that shows advanced options in transclusion dialog",
"visualeditor-dialog-transclusion-filter-hide-unused": "One of two alternating labels for a button in the template dialog's parameter selection that hides currently unused parameters. In this context the term \"fields\" refers to template parameters. Depending on the language the better translation might be \"parameters\".",
"visualeditor-dialog-transclusion-filter-hide-unused": "One of two alternating labels for a button in the template dialog's parameter selection that hides currently unused parameters.",
"visualeditor-dialog-transclusion-filter-no-match": "Message when there are no matching parameters found in the parameter search field.",
"visualeditor-dialog-transclusion-filter-placeholder": "Placeholder text for the search field that filters the list of template parameters. In this context the term \"field\" refers to a template parameter. Depending on the language the better translation might be \"parameter\".",
"visualeditor-dialog-transclusion-filter-show-all": "One of two alternating labels for a button in the template dialog's parameter selection that shows all parameters when unused parameters have been filtered before. In this context the term \"fields\" refers to template parameters. Depending on the language the better translation might be \"parameters\". The term \"fields\" refers to the template parameters.",
"visualeditor-dialog-transclusion-filter-show-all": "One of two alternating labels for a button in the template dialog's parameter selection that shows all parameters when unused parameters have been filtered before.",
"visualeditor-dialog-transclusion-filter-title": "Title for the template parameter search field.\n\nParameters:\n* $1 - The title of the related template.",
"visualeditor-dialog-transclusion-help-title": "Title for the template help dialog.",
"visualeditor-dialog-transclusion-help-message": "'''In RTL languages, swap \"left\" and \"right\".'''\n\nMessage shown to an editor within the template help dialog.",

View file

@ -302,7 +302,11 @@
width: 100%;
}
.ve-ui-mwTransclusionOutlineToggleUnusedWidget {
margin-top: -4px; /* reduce default margin to top element */
margin-left: 24px;
.ve-ui-mwTransclusionOutlineToggleUnusedWidget.oo-ui-buttonWidget {
margin: -4px 24px 0 24px;
}
.ve-ui-mwTransclusionOutlineToggleUnusedWidget .oo-ui-labelElement-label {
overflow-wrap: break-word;
white-space: normal;
}