diff --git a/webui/src/components/thread/WorkspaceControls.tsx b/webui/src/components/thread/WorkspaceControls.tsx index a64706dd2..5ef40d878 100644 --- a/webui/src/components/thread/WorkspaceControls.tsx +++ b/webui/src/components/thread/WorkspaceControls.tsx @@ -561,7 +561,7 @@ export function WorkspaceProjectPicker({ isHero, disabled, scope, defaultScope, {compact && }
- { setFilterQuery(event.target.value); setActiveIndex(0); setActiveColumn(currentColumnIndex); setHighlightActive(false); }} className={cn("h-11 rounded-[var(--picker-field-radius)] border-transparent pl-8 text-[16px] shadow-none sm:h-9 sm:text-[12px]", compact ? "bg-muted/60" : "bg-background/80")} /> + { setFilterQuery(event.target.value); setActiveIndex(0); setActiveColumn(currentColumnIndex); setHighlightActive(false); }} className={cn("h-11 rounded-[var(--picker-field-radius)] border-transparent focus-visible:ring-0 pl-8 text-[16px] shadow-none sm:h-9 sm:text-[12px]", compact ? "bg-muted/60" : "bg-background/80")} />
; @@ -601,7 +601,7 @@ export function WorkspaceProjectPicker({ isHero, disabled, scope, defaultScope, onClick={() => history.previous && visitDirectory(history.previous)}> }
- {editingPath || !canBrowse ? changeDraft(event.target.value)} onBlur={event => { if (canBrowse && !keyboardInteraction && event.relatedTarget !== confirmRef.current) cancelPathEditing(false); }} placeholder={t("workspace.dialog.manual")} aria-label={t("workspace.dialog.manual")} aria-invalid={displayedError ? true : undefined} aria-describedby={displayedError ? errorId : undefined} className="h-9 min-w-0 flex-1 rounded-[var(--picker-field-radius)] text-[16px] sm:text-[13px]" onKeyDown={event => { + {editingPath || !canBrowse ? changeDraft(event.target.value)} onBlur={event => { if (canBrowse && !keyboardInteraction && event.relatedTarget !== confirmRef.current) cancelPathEditing(false); }} placeholder={t("workspace.dialog.manual")} aria-label={t("workspace.dialog.manual")} aria-invalid={displayedError ? true : undefined} aria-describedby={displayedError ? errorId : undefined} className="h-9 min-w-0 flex-1 rounded-[var(--picker-field-radius)] border-transparent shadow-none focus-visible:ring-0 text-[16px] sm:text-[13px]" onKeyDown={event => { if (event.nativeEvent.isComposing) return; if ((event.key === "ArrowDown" || event.key === "ArrowUp") && !event.altKey && activeOptions.length) { event.preventDefault(); diff --git a/webui/src/globals.css b/webui/src/globals.css index 6f3115e02..a8fd5b96e 100644 --- a/webui/src/globals.css +++ b/webui/src/globals.css @@ -45,9 +45,10 @@ --radius-control: 0.75rem; --radius-floating: 1.125rem; --radius-panel: 1.375rem; - --radius-modal: 1.375rem; + --radius-modal: 2rem; --radius-prominent: 1.75rem; --radius-pill: 9999px; + --corner-shape: superellipse(1.5); --content-column-width: 49.5rem; --sidebar: 40 8% 96.8%; --sidebar-foreground: 0 0% 3.9%; @@ -112,6 +113,12 @@ @apply border-border; } + *, + ::before, + ::after { + corner-shape: var(--corner-shape); + } + html, body, #root { diff --git a/webui/src/lib/utils.ts b/webui/src/lib/utils.ts index b500fb167..b8ac6fa7f 100644 --- a/webui/src/lib/utils.ts +++ b/webui/src/lib/utils.ts @@ -1,5 +1,13 @@ import { clsx, type ClassValue } from "clsx"; -import { twMerge } from "tailwind-merge"; +import { extendTailwindMerge } from "tailwind-merge"; + +const twMerge = extendTailwindMerge({ + extend: { + theme: { + borderRadius: ["mark", "compact", "control", "floating", "panel", "modal", "prominent"], + }, + }, +}); export function cn(...inputs: ClassValue[]): string { return twMerge(clsx(inputs)); diff --git a/webui/tailwind.config.js b/webui/tailwind.config.js index c6549ca26..12c29aa80 100644 --- a/webui/tailwind.config.js +++ b/webui/tailwind.config.js @@ -128,7 +128,8 @@ export default { plugins: [ animate, typography, - plugin(({ addVariant }) => { + plugin(({ addVariant, addUtilities }) => { + addUtilities({ ".rounded-full": { cornerShape: "round" } }); // Revealing controls on emulated hover can consume the first Safari // tap. Keep these sidebar hover effects on hover-capable pointers. addVariant("media-hover", "@media (hover: hover)");