Skip to content

Commit 9b89c9c

Browse files
fix: constrain global dialog max-height to viewport for mobile overflow
Amp-Thread-ID: https://ampcode.com/threads/T-019c3fcd-bcf6-733b-a36e-ac87d5cb60fd
1 parent 638063b commit 9b89c9c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/components/dialog/GlobalDialog.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ function getDialogPt(item: {
7878
<style>
7979
@reference '../../assets/css/style.css';
8080
81+
.global-dialog .p-dialog {
82+
max-width: calc(100vw - 1rem);
83+
}
84+
8185
.global-dialog .p-dialog-header {
8286
@apply p-2 2xl:p-[var(--p-dialog-header-padding)];
8387
@apply pb-0;

src/components/dialog/content/ConfirmationDialogContent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
22
<section
3-
class="m-2 mt-4 flex max-h-[70vh] flex-col gap-6 whitespace-pre-wrap break-words"
3+
class="m-2 mt-4 flex flex-col gap-6 whitespace-pre-wrap break-words"
44
>
5-
<div class="flex-1 overflow-y-auto">
5+
<div>
66
<span>{{ message }}</span>
77
<ul v-if="itemList?.length" class="m-0 mt-2 flex flex-col gap-2 pl-4">
88
<li v-for="item of itemList" :key="item">

0 commit comments

Comments
 (0)