use center-dialog class for import&history

regressed in a2c8953e which centered the contents too
This commit is contained in:
tophf 2021-08-06 19:50:36 +03:00
parent 6798114196
commit 91324a4a48
3 changed files with 6 additions and 4 deletions

View File

@ -36,7 +36,8 @@
animation: fadeout .25s ease-in-out;
}
#message-box.center {
#message-box.center,
#message-box.center-dialog {
align-items: center;
justify-content: center;
}
@ -49,7 +50,8 @@
text-align: left;
}
#message-box.center > div {
#message-box.center > div,
#message-box.center-dialog > div {
top: unset;
right: unset;
}

View File

@ -206,10 +206,10 @@ async function importFromString(jsonString) {
const report = entries.map(renderStats).filter(Boolean);
messageBoxProxy.show({
title: t('importReportTitle'),
className: 'center-dialog',
contents: $create('#import', report.length ? report : t('importReportUnchanged')),
buttons: [t('confirmClose'), numChanged && t('undo')],
onshow: bindClick,
className: 'center',
})
.then(({button}) => {
if (button === 1) {

View File

@ -223,8 +223,8 @@ async function showUpdateHistory(event) {
const logText = lines.join('\n');
messageBoxProxy.show({
title: t('updateCheckHistory'),
className: 'center-dialog',
contents: log,
className: 'center',
blockScroll: true,
buttons: [
t('confirmOK'),