refactor(FE-438): Scope Drawer classes to sm breakpoint

This commit is contained in:
rstubryan
2025-12-26 20:29:18 +07:00
parent f58cb43801
commit e6a38c3f65
+4 -4
View File
@@ -61,14 +61,14 @@ const Drawer = ({
} else if (variant === 'right') {
return {
...baseClassNames,
drawer: cn(baseClassNames.drawer, 'drawer-end'),
drawer: cn(baseClassNames.drawer, 'sm:drawer-end'),
drawerSide: cn(
baseClassNames.drawerSide,
'border-l border-solid border-gray-200 drawer-side w-screen top-0 right-0 fixed z-21'
'border-l border-solid border-gray-200 sm:drawer-side w-screen top-0 right-0 fixed z-21'
),
drawerSidebarContent: cn(
baseClassNames.drawerSidebarContent,
'w-full min-w-120 sm:w-fit'
'w-full sm:min-w-120 sm:w-fit'
),
};
} else if (variant === 'left') {
@@ -80,7 +80,7 @@ const Drawer = ({
),
drawerSidebarContent: cn(
baseClassNames.drawerSidebarContent,
'w-full min-w-120 sm:w-fit'
'w-full sm:min-w-120 sm:w-fit'
),
};
}