add option to center the modal

This commit is contained in:
Henry Jameson 2025-01-07 22:08:12 +02:00
commit b461fc1c4a
6 changed files with 18 additions and 1 deletions

View file

@ -1,7 +1,7 @@
<template>
<span
class="dialog-container"
:class="{ 'dark-overlay': darkOverlay }"
:class="{ 'dark-overlay': darkOverlay, '-center-mobile': mobileCenter }"
@click.self.stop="onCancel()"
>
<div
@ -100,6 +100,10 @@
justify-content: stretch;
align-items: end;
justify-items: stretch;
&.-center-mobile {
align-items: center;
}
}
.dialog-modal.panel {