Skip to content

Commit d8cd992

Browse files
committed
Fix - adjust dialog buttons width to content
1 parent 732e9f0 commit d8cd992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/gui/menu.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ class StandaloneMenu extends JSRootMenu {
13311331
`.jsroot_dialog_header { flex: 0 1 auto; padding: 5px; }`+
13321332
`.jsroot_dialog_content { flex: 1 1 auto; padding: 5px; }`+
13331333
`.jsroot_dialog_footer { flex: 0 1 auto; padding: 5px; }`+
1334-
`.jsroot_dialog_button { float: right; margin-right: 1em; }`, element.node());
1334+
`.jsroot_dialog_button { float: right; width: fit-content; margin-right: 1em; }`, element.node());
13351335

13361336
return new Promise(resolveFunc => {
13371337
element.on('keyup', evnt => {

0 commit comments

Comments
 (0)