mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-11 07:55:52 +01:00
Fix sidebar width (300 -> 256)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user