Skip to content

Commit 6f4e63e

Browse files
iiio2whitep4nth3r
authored andcommitted
fix: prevent modal from taking full width on mobile screen (#1067)
1 parent 56f1223 commit 6f4e63e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/Modal.client.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ defineExpose({
4343
<dialog
4444
ref="dialogRef"
4545
closedby="any"
46-
class="w-full bg-bg border border-border rounded-lg shadow-xl max-h-[90vh] overflow-y-auto overscroll-contain m-0 m-auto p-6 text-fg focus-visible:outline focus-visible:outline-accent/70"
46+
class="w-[calc(100%-2rem)] bg-bg border border-border rounded-lg shadow-xl max-h-[90vh] overflow-y-auto overscroll-contain m-0 m-auto p-6 text-fg focus-visible:outline focus-visible:outline-accent/70"
4747
:aria-labelledby="modalTitleId"
4848
v-bind="$attrs"
4949
@transitionend="onDialogTransitionEnd"

0 commit comments

Comments
 (0)