diff --git a/gui/src/components/mainInput/InputToolbar.tsx b/gui/src/components/mainInput/InputToolbar.tsx index 99a940b78..4ce7e339f 100644 --- a/gui/src/components/mainInput/InputToolbar.tsx +++ b/gui/src/components/mainInput/InputToolbar.tsx @@ -78,12 +78,18 @@ function InputToolbar(props: InputToolbarProps) { <>
-
+ {/* min-w-0 is load-bearing here: without it, a flex child refuses to + shrink below its content's natural width (CSS default min-width: + auto), so ModelSelect's line-clamp-1 truncation never actually + engages and this whole row overflows the panel's right edge instead + -- reproduces identically in stock upstream Continue, not specific + to this fork. See continue-custom's git log for this file. */} +
{!isInEdit && ( @@ -169,7 +175,7 @@ function InputToolbar(props: InputToolbarProps) {
-
+
- + {modelSelectTitle(selectedModel) || "Select model"} ( ref={ref} {...props} className={cn( - "bg-vsc-input-background text-vsc-foreground border-border m-0 flex flex-1 cursor-pointer flex-row items-center gap-1 border border-solid px-1 py-0.5 text-left transition-colors duration-200", + // min-w-0 overrides the flexbox default (min-width: auto), which + // otherwise stops this button from ever shrinking below its + // label's natural width -- the child 's line-clamp/truncate + // styling can't engage without it, so a long label (e.g. a long + // model name) pushes sibling toolbar items off the panel's edge + // instead of truncating. Reproduces in stock upstream Continue too + // (not specific to this fork's changes) -- see + // gui/src/components/mainInput/InputToolbar.tsx's matching fix. + "bg-vsc-input-background text-vsc-foreground border-border m-0 flex min-w-0 flex-1 cursor-pointer flex-row items-center gap-1 border border-solid px-1 py-0.5 text-left transition-colors duration-200", props.className, )} style={{