Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions apps/web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -446,8 +446,10 @@ export function AppSidebar({
<ul className="app-sidebar-list">
<SidebarItem asChild>
<button type="button" onClick={onOpenWhatsNew}>
<span>{wording.shell.whatsNew}</span>
<Badge tone="neutral">{wording.shell.whatsNewBadge}</Badge>
<span className="app-sidebar-whats-new">
<span>{wording.shell.whatsNew}</span>
<Badge tone="neutral">{wording.shell.whatsNewBadge}</Badge>
</span>
</button>
</SidebarItem>
<SidebarItem asChild active={inSettings} icon={<SettingsIcon />}>
Expand Down
8 changes: 8 additions & 0 deletions apps/web/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,14 @@ form:has(> div > textarea) textarea:focus-visible {
gap: 1px;
}

/* SidebarItem puts all children in one inline label, so the badge needs its own row to centre and space against the text. */
.app-sidebar-whats-new {
display: inline-flex;
align-items: center;
gap: 8px;
vertical-align: middle;
}

.app-sidebar .app-sidebar-initial {
width: 18px;
height: 18px;
Expand Down