Skip to content

Commit 8bd1a99

Browse files
fix(registry): add explicit width to ColorDropdownMenuItems to prevent dropdown clipping (#5052)
When font or background color picker dropdown was opened in a narrow toolbar, ColorDropdownMenuItems's 10-column grid clipped horizontally because no explicit width was set on the grid container. Fix: - Add w-[276px] to ColorDropdownMenuItems grid container in font-color-toolbar-button.tsx. - Add patch changeset for registry UI. Closes #5052
1 parent 3add964 commit 8bd1a99

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"www": patch
3+
---
4+
5+
Fix font & background color toolbar button dropdown clipping. Added explicit width (`w-[276px]`) to `ColorDropdownMenuItems` in `font-color-toolbar-button.tsx` so the 10-column color palette grid allocates full width without horizontal clipping.

apps/www/src/registry/ui/font-color-toolbar-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ export function ColorDropdownMenuItems({
520520
return (
521521
<div
522522
className={cn(
523-
'grid grid-cols-[repeat(10,1fr)] place-items-center gap-x-1',
523+
'grid w-[276px] grid-cols-[repeat(10,1fr)] place-items-center gap-x-1',
524524
className
525525
)}
526526
{...props}

0 commit comments

Comments
 (0)