@trycompai/design-system 1.0.39 → 1.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@ const sidebarWidths = {
|
|
|
70
70
|
} as const;
|
|
71
71
|
|
|
72
72
|
const appShellSidebarVariants = cva(
|
|
73
|
-
'shrink-0 overflow-hidden hidden md:flex md:flex-col transition-[width,padding,opacity] duration-200 ease-in-out',
|
|
73
|
+
'shrink-0 overflow-hidden overscroll-none hidden md:flex md:flex-col transition-[width,padding,opacity] duration-200 ease-in-out',
|
|
74
74
|
{
|
|
75
75
|
variants: {
|
|
76
76
|
variant: {
|
|
@@ -85,7 +85,9 @@ const appShellSidebarVariants = cva(
|
|
|
85
85
|
},
|
|
86
86
|
);
|
|
87
87
|
|
|
88
|
-
const appShellContentVariants = cva(
|
|
88
|
+
const appShellContentVariants = cva(
|
|
89
|
+
'flex flex-1 flex-col overflow-auto overscroll-none bg-background min-h-0 border-l border-border',
|
|
90
|
+
{
|
|
89
91
|
variants: {
|
|
90
92
|
padding: {
|
|
91
93
|
none: '',
|
|
@@ -97,7 +99,8 @@ const appShellContentVariants = cva('flex flex-1 flex-col overflow-auto bg-backg
|
|
|
97
99
|
defaultVariants: {
|
|
98
100
|
padding: 'default',
|
|
99
101
|
},
|
|
100
|
-
}
|
|
102
|
+
},
|
|
103
|
+
);
|
|
101
104
|
|
|
102
105
|
const appShellSearchVariants = cva('', {
|
|
103
106
|
variants: {
|
|
@@ -351,7 +354,7 @@ function AppShellBody({ children, ...props }: AppShellBodyProps) {
|
|
|
351
354
|
const { mobileDrawerOpen, setMobileDrawerOpen, railContent, sidebarContent, sidebarVariant } = useAppShell();
|
|
352
355
|
|
|
353
356
|
return (
|
|
354
|
-
<div data-slot="app-shell-body" className="
|
|
357
|
+
<div data-slot="app-shell-body" className="flex flex-1 overflow-hidden overscroll-none bg-background/50 min-h-0 gap-0" {...props}>
|
|
355
358
|
{/* Mobile drawer - shows both rail and sidebar */}
|
|
356
359
|
<div className="md:hidden">
|
|
357
360
|
{/* Backdrop */}
|