Skip to content

Commit

Permalink
feat: Add more spacing to side nav links when no group label specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Jun 30, 2023
1 parent cc944cc commit edfc21b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/src/nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,16 @@ export const
const groups = items.map((g): Fluent.INavLinkGroup => ({
name: g.label,
collapseByDefault: g.collapsed,
links: g.items.map(({ name, label, icon, disabled, tooltip, path }): Fluent.INavLink => ({
links: g.items.map(({ name, label, icon, disabled, tooltip, path }, idx): Fluent.INavLink => ({
key: name,
name: label,
icon,
disabled,
title: tooltip,
style: disabled ? { opacity: 0.7 } : undefined,
style: {
opacity: disabled ? 0.7 : undefined,
marginTop: idx === 0 && !g.label ? 30 : undefined
},
url: '',
onClick: () => {
if (hideNav) hideNav()
Expand Down

0 comments on commit edfc21b

Please sign in to comment.