MDL-86952 output: truncate long text in modal/dialog title element.
This commit is contained in:
@@ -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>
|
||||
|
||||
Vendored
+1
-1
@@ -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.
|
||||
|
||||
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user