@@ -23,10 +23,10 @@ const containContentValue = computed(() => containContent?.value ?? true);
2323 :open =" rightSidebarOpen"
2424 @update:open =" setRightSidebarOpen"
2525 side =" right"
26- class =" ! min-h-[calc(100svh-var(--header-height))] "
26+ class =" min-h-0 h-full "
2727 >
2828 <SidebarMobileSync />
29- <SidebarInset class =" ! min-h-[calc(100svh-var(--header-height))] " >
29+ <SidebarInset class =" overflow-visible min-h-0 h-full " >
3030 <!-- todo fix bg color bg-muted/10 -->
3131 <div
3232 class =" p-4 w-full self-center"
@@ -47,13 +47,14 @@ const containContentValue = computed(() => containContent?.value ?? true);
4747<style scoped>
4848/* Override SidebarProvider's --sidebar-height and --sidebar-width variables */
4949.main-content-wrapper :deep(.group\/ sidebar-wrapper ) {
50- --sidebar-height : calc ( 100 svh - var ( --header-height )) !important ;
50+ --sidebar-height : 100 % !important ;
5151 --sidebar-width : 22rem !important ;
52+ min-height : 0 !important ;
5253}
5354
5455/* Define sidebar height variable for right sidebar group */
5556.main-content-wrapper :deep(.main-content-sidebar.group [data-side = " right" ]) {
56- --sidebar-height : calc ( 100 svh - var ( --header-height )) ;
57+ --sidebar-height : 100 % ;
5758}
5859
5960/* Override the fixed sidebar div positioning */
@@ -62,7 +63,7 @@ const containContentValue = computed(() => containContent?.value ?? true);
6263 .main-content-sidebar.group [data-side = " right" ]
6364 > div [class *= " fixed" ][class *= " inset-y-0" ]
6465 ) {
65- top : var ( --header-height ) !important ;
66+ top : 0 !important ;
6667 bottom : auto !important ;
6768}
6869 </style >
0 commit comments