Skip to content

Commit 5914be1

Browse files
author
Hwashiang Yu
committed
MC-3688: Button text wraps to new line instead of increasing button width
- Fixed static test failures
1 parent fd92685 commit 5914be1

File tree

1 file changed

+2
-1
lines changed
  • app/code/Magento/PageBuilder/view/frontend/web/js/content-type/buttons/appearance/inline

1 file changed

+2
-1
lines changed

app/code/Magento/PageBuilder/view/frontend/web/js/content-type/buttons/appearance/inline/widget.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ define([
1414
*/
1515
var equalizeButtonWidth = function (buttonList) {
1616
var buttonMinWidth = 0;
17+
1718
buttonList.css('min-width', buttonMinWidth);
1819
buttonList.each(function () {
1920
var buttonWidth = this.offsetWidth;
@@ -30,7 +31,7 @@ define([
3031

3132
if ($element.data('sameWidth')) {
3233
equalizeButtonWidth($element.find('[data-element="link"]'));
33-
$( window ).resize(function() {
34+
$(window).resize(function () {
3435
equalizeButtonWidth($element.find('[data-element="link"]'));
3536
});
3637
}

0 commit comments

Comments
 (0)