Use existing .center

This commit is contained in:
Gusted 2021-07-01 21:58:07 +02:00
parent b156811be6
commit 117a067bbe
No known key found for this signature in database
GPG Key ID: FD821B732837125F
3 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,8 @@
} }
#message-box > div { #message-box > div {
top: 3rem;
right: 3rem;
min-width: 10rem; min-width: 10rem;
max-width: 50vw; max-width: 50vw;
min-height: 5rem; min-height: 5rem;

View File

@ -209,6 +209,7 @@ async function importFromString(jsonString) {
contents: $create('#import', report.length ? report : t('importReportUnchanged')), contents: $create('#import', report.length ? report : t('importReportUnchanged')),
buttons: [t('confirmClose'), numChanged && t('undo')], buttons: [t('confirmClose'), numChanged && t('undo')],
onshow: bindClick, onshow: bindClick,
className: 'center',
}) })
.then(({button}) => { .then(({button}) => {
if (button === 1) { if (button === 1) {

View File

@ -224,6 +224,7 @@ async function showUpdateHistory(event) {
messageBoxProxy.show({ messageBoxProxy.show({
title: t('updateCheckHistory'), title: t('updateCheckHistory'),
contents: log, contents: log,
className: 'center',
blockScroll: true, blockScroll: true,
buttons: [ buttons: [
t('confirmOK'), t('confirmOK'),