Fix sidebar width (300 -> 256)

This commit is contained in:
ajnart
2023-01-17 13:17:48 +09:00
committed by Manuel
parent 5d8b0e1e20
commit 8b3aa72f1c

View File

@@ -13,18 +13,10 @@ export const DashboardSidebar = ({ location, isGridstackReady }: DashboardSideba
const { const {
cx, cx,
classes: { card: cardClass }, classes: { card: cardClass },
} = useCardStyles(false); } = useCardStyles(true);
return ( return (
<Card <Card p={0} m={0} radius="lg" className={cardClass} withBorder>
p={0}
m={0}
radius="lg"
className={cardClass}
style={{ borderStyle: 'dashed' }}
w={300}
withBorder
>
{isGridstackReady && <SidebarInner location={location} />} {isGridstackReady && <SidebarInner location={location} />}
</Card> </Card>
); );
@@ -50,7 +42,9 @@ const SidebarInner = ({ location }: DashboardSidebarInnerProps) => {
className="grid-stack grid-stack-sidebar" className="grid-stack grid-stack-sidebar"
style={{ style={{
transitionDuration: '0s', transitionDuration: '0s',
minWidth: 256,
height: '100%', height: '100%',
width: '100%',
}} }}
data-sidebar={location} data-sidebar={location}
// eslint-disable-next-line react/no-unknown-property // eslint-disable-next-line react/no-unknown-property