use center-dialog
class for import&history
regressed in a2c8953e
which centered the contents too
This commit is contained in:
parent
6798114196
commit
91324a4a48
|
@ -36,7 +36,8 @@
|
||||||
animation: fadeout .25s ease-in-out;
|
animation: fadeout .25s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
#message-box.center {
|
#message-box.center,
|
||||||
|
#message-box.center-dialog {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
@ -49,7 +50,8 @@
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
#message-box.center > div {
|
#message-box.center > div,
|
||||||
|
#message-box.center-dialog > div {
|
||||||
top: unset;
|
top: unset;
|
||||||
right: unset;
|
right: unset;
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,10 +206,10 @@ async function importFromString(jsonString) {
|
||||||
const report = entries.map(renderStats).filter(Boolean);
|
const report = entries.map(renderStats).filter(Boolean);
|
||||||
messageBoxProxy.show({
|
messageBoxProxy.show({
|
||||||
title: t('importReportTitle'),
|
title: t('importReportTitle'),
|
||||||
|
className: 'center-dialog',
|
||||||
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) {
|
||||||
|
|
|
@ -223,8 +223,8 @@ async function showUpdateHistory(event) {
|
||||||
const logText = lines.join('\n');
|
const logText = lines.join('\n');
|
||||||
messageBoxProxy.show({
|
messageBoxProxy.show({
|
||||||
title: t('updateCheckHistory'),
|
title: t('updateCheckHistory'),
|
||||||
|
className: 'center-dialog',
|
||||||
contents: log,
|
contents: log,
|
||||||
className: 'center',
|
|
||||||
blockScroll: true,
|
blockScroll: true,
|
||||||
buttons: [
|
buttons: [
|
||||||
t('confirmOK'),
|
t('confirmOK'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user