mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-20 08:08:58 +00:00
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:
co-authored by
Claude Opus 5.5
parent
18d0a78bb7
commit
a03643adca
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user