Skip to content

Commit 26c3108

Browse files
drankouclaude
andauthored
fix: prevent copy button overlapping E2B badge in template name cell (#457)
The copy button in the templates list Name cell was absolutely positioned (`absolute right-0`), so it reserved no horizontal space and the in-flow E2B/`+N` badges slid underneath it whenever the name filled the cell (narrow Name column or default-template rows). This moves the button back into flow with `ml-auto shrink-0` so it reserves its own space and the badges can no longer collide with it, while keeping `relative z-10` so it stays clickable above the row's overlay navigation link. Fixes EN-1115. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 2be4ee0 commit 26c3108

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/features/dashboard/templates/list/table-cells.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export function TemplateNameCell({
296296
type="button"
297297
onClick={handleCopy}
298298
className={cn(
299-
'group/copy absolute right-0 z-10 p-1.5 rounded cursor-pointer',
299+
'group/copy relative z-10 ml-auto shrink-0 p-1.5 rounded cursor-pointer',
300300
'opacity-0 group-hover/row:opacity-100',
301301
'focus-visible:opacity-100 focus-visible:outline-none'
302302
)}

0 commit comments

Comments
 (0)