Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/runtime/components/Drawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ const ui = computed(() => tv({ extend: tv(theme), ...(appConfig.ui?.drawer || {}
<DrawerPortal v-bind="portalProps">
<DrawerOverlay v-if="overlay" :class="ui.overlay({ class: props.ui?.overlay })" />

<DrawerContent :class="ui.content({ class: [!slots.default && props.class, props.ui?.content] })" v-bind="contentProps" v-on="contentEvents">
<DrawerContent :class="ui.content({ class: [!slots.default && props.class, props.ui?.content] })" :data-inset="inset" v-bind="contentProps" v-on="contentEvents">
<DrawerHandle v-if="handle" :class="ui.handle({ class: props.ui?.handle })" />

<VisuallyHidden v-if="!!slots.content && ((title || !!slots.title) || (description || !!slots.description))">
Expand Down
2 changes: 1 addition & 1 deletion src/theme/drawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default (options: Required<ModuleOptions>) => ({
},
inset: {
true: {
content: 'rounded-lg after:hidden overflow-hidden'
content: 'rounded-lg after:hidden overflow-hidden data-[inset=true]:[--initial-transform:calc(100%+1.5rem)]'
}
}
},
Expand Down
Loading