🎨 Tighten up sidebars

This commit is contained in:
ajnart
2023-01-19 11:13:03 +09:00
parent 0dc8f24306
commit 3481fef3eb
3 changed files with 2 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ export const DashboardView = () => {
const { isReady, mainAreaRef } = usePrepareGridstack();
return (
<Group align="top" h="100%">
<Group align="top" h="100%" spacing="xs">
{sidebarsVisible.isLoading ? (
<Center w="100%">
<Loader />

View File

@@ -31,10 +31,6 @@ const SidebarInner = ({ location }: DashboardSidebarInnerProps) => {
const { refs, apps, widgets } = useGridstack('sidebar', location);
const minRow = useMinRowForFullHeight(refs.wrapper);
const {
cx,
classes: { card: cardClass },
} = useCardStyles(false);
return (
<div

View File

@@ -30,7 +30,7 @@ export const initializeGridstack = (
newGrid.current = GridStack.init(
{
column: columnCount,
margin: 10,
margin: areaType === 'sidebar' ? 5 : 10,
cellHeight: 128,
float: true,
alwaysShowResizeHandle: 'mobile',