align narrow sidebar row icons and labels with the other rows (#12498)

* fix: center chat icons and show-older ellipsis in the collapsed sidebar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: give the narrow sidebar row icons a 16px slot so labels line up

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Guilhem
2026-11-17 17:38:46 +01:00
committed by GitHub
co-authored by Claude Opus 5.5
parent 18d0a78bb7
commit a03643adca
2 changed files with 6 additions and 3 deletions
@@ -104,9 +104,10 @@
)}
>
{#if t.agent}
<Bot size={14} class="shrink-0 text-violet-500" />
<!-- mx-px gives the 14px icon a 16px item icon's slot, as the other rows have. -->
<Bot size={14} class="shrink-0 mx-px text-violet-500" />
{:else}
<BarsStaggered size={14} class="shrink-0 text-teal-500" />
<BarsStaggered size={14} class="shrink-0 mx-px text-teal-500" />
{/if}
<span class={rail ? 'sr-only' : 'truncate'}>{c.title || 'Untitled chat'}</span>
</a>
@@ -19,10 +19,12 @@
const label = $derived(expanded ? 'Show less' : `Show ${count} older`)
</script>
<!-- mx-0.5 gives the 12px icon a 16px item icon's slot: it sits on the rail's icon column and the
label starts where the other rows' labels do. -->
<Button
unifiedSize="xs"
variant="subtle"
startIcon={{ icon: Ellipsis }}
startIcon={{ icon: Ellipsis, classes: 'mx-0.5' }}
iconOnly={rail}
title={label}
aria-label={label}