style(webui): refine composer surface and workspace hover (#6444)
* style(webui): refine the chat composer surface Use a themed card background with a subtle edge and soft shadow. Keep focus stable without a darker frame while preserving Goal and drag rings. Align the startup composer surface and add composer-scoped browser coverage. * style(webui): align workspace hover with access control Keep the workspace trigger background clear on hover and use its existing text-color feedback, matching the adjacent access control. Preserve focus, disabled, and directory-picker behavior.
This commit is contained in:
1 parent
e7e94bda1c
commit
4f7c4f0885
6 files changed
+83
-6
No files matched your search
@@ -2641,11 +2641,11 @@ export function ThreadComposer({
|
||||
data-compact={compactIdle || undefined}
|
||||
style={paletteBeside ? { maxHeight: slashPaletteLayout.maxHeight, overflowY: "auto" } : undefined}
|
||||
className={cn(
|
||||
"thread-composer-surface group/composer relative mx-auto flex w-full flex-col overflow-visible transition-all duration-200",
|
||||
"thread-composer-surface group/composer relative mx-auto flex w-full flex-col overflow-visible bg-card",
|
||||
paletteBeside && "col-start-1 row-start-1",
|
||||
isHero
|
||||
? "max-w-[var(--composer-content-width,58rem)] rounded-prominent bg-muted/80 focus-within:bg-muted dark:bg-card dark:focus-within:bg-white/[0.06]"
|
||||
: "max-w-[var(--composer-content-width,49.5rem)] rounded-panel bg-muted/80 focus-within:bg-muted dark:bg-card dark:focus-within:bg-white/[0.06]",
|
||||
? "max-w-[var(--composer-content-width,58rem)] rounded-prominent"
|
||||
: "max-w-[var(--composer-content-width,49.5rem)] rounded-panel",
|
||||
compactWhenIdle && "thread-composer-collapsible transition-colors motion-reduce:transition-none",
|
||||
interactionDisabled && "opacity-60",
|
||||
sessionDragPreview && "ring-1 ring-primary/25",
|
||||
|
||||
@@ -555,7 +555,7 @@ export function WorkspaceProjectPicker({ disabled, scope, defaultScope, controls
|
||||
<Dialog open={open} onOpenChange={setOpen}>
|
||||
<HoverHint content={`${t("workspace.picker.switchDirectory")}\n${displayedScope?.project_path ?? ""}`}>
|
||||
<DialogTrigger asChild>
|
||||
<button ref={triggerRef} onClick={event => { openedWithKeyboard.current = event.detail === 0; }} onPointerDown={() => setKeyboardInteraction(false)} onKeyDown={() => setKeyboardInteraction(true)} type="button" disabled={disabled} aria-label={t("workspace.picker.switchDirectory")} className="settings-hover thread-composer-workspace touch-target inline-flex h-7 min-w-0 max-w-full items-center gap-1.5 rounded-md px-2 text-[12px] font-medium text-muted-foreground outline-none transition-colors motion-reduce:transition-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-55">
|
||||
<button ref={triggerRef} onClick={event => { openedWithKeyboard.current = event.detail === 0; }} onPointerDown={() => setKeyboardInteraction(false)} onKeyDown={() => setKeyboardInteraction(true)} type="button" disabled={disabled} aria-label={t("workspace.picker.switchDirectory")} className="thread-composer-workspace touch-target inline-flex h-7 min-w-0 max-w-full items-center gap-1.5 rounded-md px-2 text-[12px] font-medium text-muted-foreground outline-none transition-colors motion-reduce:transition-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-55">
|
||||
<WorkspaceIcon className="h-3.5 w-3.5 shrink-0" />
|
||||
<span className="min-w-0 truncate">{projectLabel}</span>
|
||||
<ChevronDown className="h-3 w-3 shrink-0" aria-hidden />
|
||||
|
||||
Reference in new issue
Block a user