MDL-86952 output: truncate long text in modal/dialog title element.

This commit is contained in:
Paul Holden
2025-10-17 14:12:04 +01:00
parent 21be86fb7f
commit c1c1e0cb30
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -46,7 +46,7 @@
<div class="modal-header {{$headerclasses}}{{headerclasses}}{{/headerclasses}}" data-region="header">
{{$header}}
<h5 id="{{uniqid}}-modal-title" class="modal-title" data-region="title">{{$title}}{{title}}{{/title}}</h5>
<h5 id="{{uniqid}}-modal-title" class="modal-title text-truncate" data-region="title">{{$title}}{{title}}{{/title}}</h5>
{{/header}}
<button type="button" class="btn-close" data-action="hide" aria-label="{{#cleanstr}}closebuttontitle{{/cleanstr}}"></button>
</div>
@@ -140,7 +140,7 @@ Y.extend(DIALOGUE, Y.Panel, {
}
this.setStdModContent(Y.WidgetStdMod.HEADER,
'<h5 id="' + this.get('id') + '-wrap-header-text">' + this.get('headerContent') + '</h5>',
'<h5 id="' + this.get('id') + '-wrap-header-text" class="text-truncate">' + this.get('headerContent') + '</h5>',
Y.WidgetStdMod.REPLACE);
// Initialise the element cache.
File diff suppressed because one or more lines are too long
@@ -140,7 +140,7 @@ Y.extend(DIALOGUE, Y.Panel, {
}
this.setStdModContent(Y.WidgetStdMod.HEADER,
'<h5 id="' + this.get('id') + '-wrap-header-text">' + this.get('headerContent') + '</h5>',
'<h5 id="' + this.get('id') + '-wrap-header-text" class="text-truncate">' + this.get('headerContent') + '</h5>',
Y.WidgetStdMod.REPLACE);
// Initialise the element cache.
+1 -1
View File
@@ -110,7 +110,7 @@ Y.extend(DIALOGUE, Y.Panel, {
}
this.setStdModContent(Y.WidgetStdMod.HEADER,
'<h5 id="' + this.get('id') + '-wrap-header-text">' + this.get('headerContent') + '</h5>',
'<h5 id="' + this.get('id') + '-wrap-header-text" class="text-truncate">' + this.get('headerContent') + '</h5>',
Y.WidgetStdMod.REPLACE);
// Initialise the element cache.