fix(webui): adapt chat toolbar to available width (#5760)

* fix(webui): float chat controls above the transcript

* fix(webui): keep floating controls compact and flat

* fix(webui): adapt toolbar placement to conversation width

* refactor(webui): simplify responsive toolbar styles
This commit is contained in:
chengyongru authored and GitHub committed 2026-09-14 15:25:13 +08:00
1 parent 95b2346ea5
commit f611c880f9
6 files changed
+67 -24

No files matched your search

@@ -685,11 +685,15 @@ export function PaneWorkbench({
return (
<section
aria-label={t("workbench.aria", { defaultValue: "Conversation workbench" })}
className="flex h-full min-h-0 flex-col overflow-hidden bg-background"
className={cn(
"thread-workspace relative flex h-full min-h-0 flex-col overflow-hidden bg-background",
chrome && displayedPanes.length > 1
&& "[--thread-header-position:relative] [--thread-prompt-inset:1rem]",
)}
>
<TooltipProvider>
{chrome ? (
<header className="shrink-0 bg-background">
<header className="pointer-events-none inset-x-0 top-0 z-30 shrink-0 [position:var(--thread-header-position,absolute)]">
<div
ref={setHeaderPortalTarget}
data-testid="workbench-header-host"