Skip to content

Commit 6e79fa2

Browse files
committed
fix(modal): align modal vertically
1 parent 5501805 commit 6e79fa2

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

src/assets/global.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,16 +247,15 @@ label:has([type="checkbox"]) {
247247
}
248248
}
249249
dialog {
250-
left: 50%;
251250
width: 100%;
252251
max-width: 25rem;
253-
max-height: 100dvh;
252+
max-height: 90dvh;
254253
padding: 0;
254+
margin: auto;
255255
color: var(--base);
256256
background-color: var(--background);
257257
border: 1px solid var(--base-dimmed);
258258
border-radius: 0.25rem;
259-
transform: translateX(-50%);
260259
&::backdrop {
261260
background-color: rgb(0 0 0 / 35%)
262261
}

src/components/modals/about-modal.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ const commitDate = dayjs(import.meta.env.VITE_GIT_COMMIT_DATE).format("DD.MM.YY"
7777
<style lang="scss">
7878
.about {
7979
max-width: 75vw;
80-
max-height: unset;
8180
&__content {
8281
display: grid;
83-
gap: 0.5rem;
82+
gap: 1rem;
8483
ul {
8584
padding-left: 1.25rem;
8685
list-style: disc;

0 commit comments

Comments
 (0)