Improved dialog button bar CSS

This commit is contained in:
JannisX11 2023-10-27 21:58:22 +02:00
parent fc9534c7d1
commit 3ec6efe41e
2 changed files with 6 additions and 4 deletions

View File

@ -147,11 +147,11 @@
.dialog_bar > label {
width: var(--max_label_width);
}
.dialog_bar::after {
/*.dialog_bar::after {
content: "";
clear: both;
display: block;
}
}*/
.dialog_bar.narrow {
min-height: 30px;
}
@ -372,6 +372,10 @@
grid-area: buttons;
margin-top: 0px;
margin-bottom: 12px;
display: flex;
flex-wrap: wrap;
justify-content: right;
gap: 3px;
}
.dialog_sidebar .dialog_sidebar_pages {

View File

@ -784,7 +784,6 @@ window.Dialog = class Dialog {
let button_bar = $('<div class="dialog_bar button_bar"></div>');
buttons.forEach((button, i) => {
if (i) button_bar.append('&nbsp;')
button_bar.append(button)
})
@ -1037,7 +1036,6 @@ window.MessageBox = class MessageBox extends Dialog {
let button_bar = $('<div class="dialog_bar button_bar"></div>');
buttons.forEach((button, i) => {
if (i) button_bar.append('&nbsp;')
button_bar.append(button)
})