Skip to content

Commit 08423b8

Browse files
mdatellemdatelle
andauthored
fix: small modal window (#1183)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Style** - Adjusted the modal’s width during transitions for a consistent full-width display. - Refined responsive behavior for improved modal display on smaller screens. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: mdatelle <[email protected]>
1 parent 364eb62 commit 08423b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/components/Modal.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ const computedVerticalCenter = computed<string>(() => {
107107
leave="duration-200 ease-in"
108108
leave-from="opacity-100 scale-100"
109109
leave-to="opacity-0 scale-95"
110+
class="w-full"
110111
>
111112
<div
112113
:class="[
@@ -116,7 +117,7 @@ const computedVerticalCenter = computed<string>(() => {
116117
success ? 'shadow-green-600/30 border-green-600/10' : '',
117118
!error && !success && !disableShadow ? 'shadow-orange/10 border-white/10' : '',
118119
]"
119-
class="text-16px text-foreground bg-background text-left relative z-10 mx-auto flex flex-col justify-around border-2 border-solid transform overflow-hidden rounded-lg transition-all sm:w-full"
120+
class="text-16px text-foreground bg-background text-left relative z-10 mx-auto flex flex-col justify-around border-2 border-solid transform overflow-hidden rounded-lg transition-all"
120121
>
121122
<div v-if="showCloseX" class="absolute z-20 right-0 top-0 pt-4px pr-4px hidden sm:block">
122123
<button

0 commit comments

Comments
 (0)