Skip to content

Commit 22844ed

Browse files
fix: indentation of children menu items
1 parent fb87b17 commit 22844ed

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

site_jaspr/lib/components/collapsible_sidebar.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ class CollapsibleSidebar extends StatelessComponent {
168168
// ── Sidebar container ────────────────────────────────────────────────────
169169
css('.sidebar', [
170170
css('&').styles(
171-
padding: Padding.only(left: 0.5.rem, bottom: 1.25.rem, top: 0.75.rem),
171+
padding: Padding.only(bottom: 1.25.rem, top: 0.75.rem),
172172
position: Position.relative(),
173173
fontSize: 0.875.rem,
174174
),
@@ -274,10 +274,12 @@ class CollapsibleSidebar extends StatelessComponent {
274274
'display': 'grid',
275275
'grid-template-rows': '0fr',
276276
'transition': 'grid-template-rows 0.3s ease',
277+
// Indentation applied here (not on the inner ul) to avoid being
278+
// overridden by the higher-specificity .sidebar .sidebar-group ul rule.
279+
'padding-left': '1rem',
277280
},
278281
),
279282
css('.sidebar-children > ul').styles(
280-
padding: Padding.only(left: 1.rem),
281283
overflow: Overflow.hidden,
282284
),
283285
css('.sidebar-collapsible.expanded .sidebar-children').styles(

0 commit comments

Comments
 (0)