diff --git a/src/components/media/MediaAnnotationToolbar.tsx b/src/components/media/MediaAnnotationToolbar.tsx index 3e56e219..3d9cb54e 100644 --- a/src/components/media/MediaAnnotationToolbar.tsx +++ b/src/components/media/MediaAnnotationToolbar.tsx @@ -81,11 +81,12 @@ export function MediaAnnotationToolbar({ left: centerX, top: frameRect.top, transform: "translate(-50%, calc(-100% - 10px))", - maxWidth: `min(${Math.max(frameRect.width, 360)}px, calc(100vw - 32px))`, + width: "max-content", + maxWidth: "calc(100vw - 32px)", } as CSSProperties; const toolButtonClass = (active: boolean) => - `!h-9 !w-9 !rounded-md ${active ? "!bg-[var(--surface-hover)] !text-[var(--text-primary)]" : "!text-[var(--text-secondary)]"}`; + `!h-9 !w-9 !shrink-0 !rounded-md ${active ? "!bg-[var(--surface-hover)] !text-[var(--text-primary)]" : "!text-[var(--text-secondary)]"}`; const colorPopover = (
@@ -124,7 +125,7 @@ export function MediaAnnotationToolbar({ return (
@@ -146,13 +147,13 @@ export function MediaInpaintingToolbar({ />
-
+
{action.dropdown ? ( {sections.map((section, sectionIndex) => ( -
+
{sectionIndex > 0 ? (