lign copy button on fork-less workspace rows (#9992)

The hover-revealed copy button in the workspace picker sat flush against
the menu's right edge on fork-less rows, because only forked rows render
an expand chevron that insets the copy button. Reserve the chevron's slot
on fork-less rows so copy buttons align across rows and keep right padding.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Guilhem
2026-07-07 20:25:33 +02:00
committed by GitHub
parent 4bb82ad6cd
commit 63e3e7735f
@@ -324,6 +324,11 @@
<ChevronRight size={14} />
{/if}
</button>
{:else}
<!-- Reserve the expand-chevron's slot on fork-less rows so the hover copy
button lines up with the forked rows' and never sits flush against the
menu's right edge. Matches the chevron's px-2 (30px) + mr-1. -->
<div class="shrink-0 mr-1 w-[30px]" aria-hidden="true"></div>
{/if}
</div>
{/each}