Skip to content

Commit

Permalink
Revert "fix(VNavigationDrawer): don't restrict elementSize when..."
Browse files Browse the repository at this point in the history
This reverts commit 1ee802d.
  • Loading branch information
johnleider committed Feb 17, 2025
1 parent 15cf370 commit 8294e8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@
&--rounded
@include tools.rounded($navigation-drawer-rounded-border-radius)

&--top,
&--bottom
max-height: -webkit-fill-available
overflow-y: auto

&--top
top: 0
border-bottom-width: $navigation-drawer-border-thin-width
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,12 @@ export const VNavigationDrawer = genericComponent<VNavigationDrawerSlots>()({

return isDragging.value ? size * dragProgress.value : size
})
const elementSize = computed(() => ['top', 'bottom'].includes(props.location) ? 0 : width.value)
const { layoutItemStyles, layoutItemScrimStyles } = useLayoutItem({
id: props.name,
order: computed(() => parseInt(props.order, 10)),
position: location,
layoutSize,
elementSize,
elementSize: width,
active: computed(() => isActive.value || isDragging.value),
disableTransitions: computed(() => isDragging.value),
absolute: computed(() =>
Expand Down Expand Up @@ -247,7 +246,6 @@ export const VNavigationDrawer = genericComponent<VNavigationDrawerSlots>()({
ssrBootStyles.value,
stickyStyles.value,
props.style,
['top', 'bottom'].includes(location.value) ? { height: 'auto' } : {},
]}
{ ...scopeId }
{ ...attrs }
Expand Down

0 comments on commit 8294e8c

Please sign in to comment.