Use flex to center #message-box (#1271)

* Use flex to center #message-box

- Resolves #1270
- See details on the issue mentioned.

* Use existing .center

* Remove center rule at non-center selector
This commit is contained in:
Gusted 2021-07-06 21:18:42 +00:00 committed by GitHub
parent 9e72784b2a
commit a2c8953e63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

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'),