Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions studio/frontend/src/app/provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ import { refreshWindowChromeTop } from "@/lib/window-chrome";
import {
CHAT_SETTINGS_INSET_VAR,
COMPOSER_CLEARANCE_VAR,
cornerInsetScope,
getToastOffsets,
insetPastChatSettings,
overlayRailScope,
} from "@/lib/toast-offset";
import { Z_LAYER } from "@/lib/z-layers";
import { useRouterState } from "@tanstack/react-router";
Expand Down Expand Up @@ -555,7 +555,7 @@ function TauriUpdateLayer({
/>
) : (
<div
ref={cornerInsetScope}
ref={overlayRailScope}
// Scrolls at the cap rather than spilling cards off screen; the gutter keeps the card shadows out of that clip.
className="pointer-events-none fixed bottom-0 right-0 flex max-h-[calc(100dvh-var(--studio-window-chrome-top,0px))] flex-col items-end gap-2 overflow-y-auto overflow-x-hidden overscroll-contain"
data-testid="overlay-rail"
Expand Down Expand Up @@ -974,7 +974,7 @@ function TauriWrapper({ children }: { children: ReactNode }) {
{/* Capped to the viewport: a long download list plus expanded notes would
push the top of the stack off screen. */}
<div
ref={cornerInsetScope}
ref={overlayRailScope}
// Scrolls at the cap rather than spilling cards off screen; the gutter keeps the card shadows out of that clip.
className="pointer-events-none fixed bottom-0 right-0 flex max-h-[100dvh] flex-col items-end gap-2 overflow-y-auto overflow-x-hidden overscroll-contain"
data-testid="overlay-rail"
Expand Down
2 changes: 1 addition & 1 deletion studio/frontend/src/components/floating-monitor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ function FloatingMonitorPanel({
className={cn(
// transition-none: reduce motion's 0.01ms duration otherwise turns the drop's transform to
// left/top handoff into a transition, and the compositor paints a frame at the start spot.
"settings-surface bg-background pointer-events-auto absolute flex max-h-full w-64 transition-none max-w-full cursor-grab select-none active:cursor-grabbing flex-col overflow-hidden rounded-2xl border border-border/70 p-3 shadow-border ring-0",
"settings-surface glass-card bg-background pointer-events-auto absolute flex max-h-full w-64 transition-none max-w-full cursor-grab select-none active:cursor-grabbing flex-col overflow-hidden rounded-2xl border border-border/70 p-3 shadow-border ring-0",
layout ? "top-0 left-0" : "right-0 bottom-0",
)}
data-testid="floating-monitor"
Expand Down
2 changes: 1 addition & 1 deletion studio/frontend/src/components/ui/sonner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const Toaster = ({ ...props }: ToasterProps) => {
toastOptions={{
classNames: {
// an open modal dialog sets pointer-events:none on body, which toasts would otherwise inherit.
toast: "cn-toast modal-pe-live pointer-events-auto",
toast: "cn-toast modal-pe-live pointer-events-auto glass-card",
description: "!text-muted-foreground",
},
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ function ApiMonitorPanel({
/* Panel language from the sidebar menu: soft surface, menu corner, heading font. */
className={cn(
// transition-none: see floating-monitor.tsx (a drop must not flash at the start spot).
"menu-soft-surface pointer-events-auto absolute flex max-h-full transition-none w-[calc(400px*var(--ui-space-scale,1))] max-w-full cursor-default select-none flex-col overflow-hidden rounded-xl border-0 p-2.5 font-heading ring-0",
"menu-soft-surface glass-card pointer-events-auto absolute flex max-h-full transition-none w-[calc(400px*var(--ui-space-scale,1))] max-w-full cursor-default select-none flex-col overflow-hidden rounded-xl border-0 p-2.5 font-heading ring-0",
// The CSS corner until it has been measured, so the first paint
// is the corner it has always opened in rather than the top left.
layout ? "top-0 left-0 resize" : "bottom-0 right-0",
Expand Down
1 change: 1 addition & 0 deletions studio/frontend/src/features/chat-background/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export const LENS_HOSTS = [
".glass-float-surface",
'[data-sonner-toast][data-styled="true"]',
".toast-surface",
".glass-card",
'[data-auth-wallpaper] > [data-slot="card"]',
".tooltip-compact",
".tooltip-rich",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const BLOCKED_HOSTS_SHOWN = 3;
// The wrapper spans the canvas, so only the notice itself takes clicks.
const NOTICE_WRAP = "pointer-events-none absolute inset-x-0 top-0 flex justify-center p-2";
const NOTICE =
"pointer-events-auto max-w-[calc(460px*var(--ui-space-scale,1))] gap-y-0.5 rounded-lg border-transparent bg-popover py-3 ps-4.5 text-ui-13 leading-normal text-popover-foreground shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] has-data-[slot=alert-action]:pe-12 dark:bg-card dark:shadow-[0_2px_8px_-2px_var(--background)]";
"glass-card pointer-events-auto max-w-[calc(460px*var(--ui-space-scale,1))] gap-y-0.5 rounded-lg border-transparent bg-popover py-3 ps-4.5 text-ui-13 leading-normal text-popover-foreground shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] has-data-[slot=alert-action]:pe-12 dark:bg-card dark:shadow-[0_2px_8px_-2px_var(--background)]";
const NOTICE_BODY =
"text-ui-13 leading-[1.4] text-muted-foreground [&_p:not(:last-child)]:mb-2.5";
const NOTICE_BUTTON = "h-6 rounded-full px-2 text-ui-12 font-medium";
Expand Down
2 changes: 1 addition & 1 deletion studio/frontend/src/features/export/export-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,7 @@ export function ExportPage() {
})
}
aria-label="Scroll to export output"
className="fixed bottom-6 right-6 z-30 flex size-10 items-center justify-center rounded-full bg-background/90 text-foreground shadow-md backdrop-blur transition-colors hover:bg-muted"
className="glass-card fixed bottom-6 right-6 z-30 flex size-10 items-center justify-center rounded-full bg-background/90 text-foreground shadow-md backdrop-blur transition-colors hover:bg-muted"
>
<HugeiconsIcon
icon={ChevronDownStandardIcon}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export function FindInPage({ enabled = true }: { enabled?: boolean }) {
dismissLabel={t("common.close")}
onDismiss={close}
testId="find-in-page-load-failure"
className="fixed top-3 right-3 z-[100] max-w-xs rounded-xl border border-border bg-popover p-4 text-popover-foreground shadow-lg"
className="glass-card fixed top-3 right-3 z-[100] max-w-xs rounded-xl border border-border bg-popover p-4 text-popover-foreground shadow-lg"
/>
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export function DownloadManagerPanel({
type="button"
aria-label={headerLabel}
onClick={() => setCollapsed(false)}
className="hub-download-fab pointer-events-auto modal-pe-live"
className="hub-download-fab pointer-events-auto modal-pe-live glass-card"
>
<HugeiconsIcon
icon={Download01Icon}
Expand All @@ -389,7 +389,7 @@ export function DownloadManagerPanel({
</TooltipContent>
</Tooltip>
) : (
<div className="hub-download-panel pointer-events-auto modal-pe-live flex min-h-0 w-[min(400px,calc(100vw-2rem))] flex-col overflow-hidden">
<div className="hub-download-panel pointer-events-auto modal-pe-live glass-card relative flex min-h-0 w-[min(400px,calc(100vw-2rem))] flex-col overflow-hidden">
<div className="flex items-center gap-2 border-b border-[color-mix(in_oklab,var(--foreground)_calc(7%*var(--contrast-edge-gain,1)),transparent)] py-2 pl-4 pr-3">
<span className="min-w-0 flex-1 truncate text-ui-12p5 font-semibold text-foreground">
{headerLabel}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1498,7 +1498,7 @@ export function ChatsLibrary({
<div
role="toolbar"
aria-label={t("shell.selection.countSelected", { count: selectedChats.length })}
className="fixed bottom-8 left-1/2 z-30 flex font-sans -translate-x-1/2 items-center gap-2 rounded-full bg-sidebar py-2 pl-6 pr-2 text-sidebar-foreground shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] dark:shadow-[0_8px_28px_-6px_var(--background)]"
className="glass-card fixed bottom-8 left-1/2 z-30 flex font-sans -translate-x-1/2 items-center gap-2 rounded-full bg-sidebar py-2 pl-6 pr-2 text-sidebar-foreground shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] dark:shadow-[0_8px_28px_-6px_var(--background)]"
>
<span aria-live="polite" className="mr-4 whitespace-nowrap text-sm font-medium">
{t("shell.selection.countSelected", { count: selectedChats.length })}
Expand Down
2 changes: 1 addition & 1 deletion studio/frontend/src/features/library/library-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ function LibraryView({
role="toolbar"
aria-label={t("library.selection.countOfTotal", { count: selectedCount, total: orderedKeys.length })}
tabIndex={-1}
className="fixed bottom-8 left-1/2 z-30 flex w-max max-w-[calc(100vw-2rem)] -translate-x-1/2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden [&>*]:shrink-0 items-center gap-2 rounded-full bg-sidebar py-2 pl-6 pr-2 text-sidebar-foreground shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] outline-none focus-visible:ring-2 focus-visible:ring-ring dark:shadow-[0_8px_28px_-6px_var(--background)]"
className="glass-card fixed bottom-8 left-1/2 z-30 flex w-max max-w-[calc(100vw-2rem)] -translate-x-1/2 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden [&>*]:shrink-0 items-center gap-2 rounded-full bg-sidebar py-2 pl-6 pr-2 text-sidebar-foreground shadow-[0_2px_8px_-2px_rgba(0,0,0,0.16)] outline-none focus-visible:ring-2 focus-visible:ring-ring dark:shadow-[0_8px_28px_-6px_var(--background)]"
>
<span className="mr-4 flex items-center whitespace-nowrap text-sm font-medium">
<span aria-live="polite">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export function LoadedModelsIndicator({
onClick={() => {
if (!justDragged()) setCollapsed(false);
}}
className="menu-soft-surface menu-soft-edgeless pointer-events-auto flex h-9 cursor-grab touch-none items-center gap-1.5 rounded-full pl-2.5 pr-3 font-heading text-muted-foreground transition-colors hover:text-foreground active:cursor-grabbing"
className="menu-soft-surface menu-soft-edgeless glass-card pointer-events-auto relative flex h-9 cursor-grab touch-none items-center gap-1.5 rounded-full pl-2.5 pr-3 font-heading text-muted-foreground transition-colors hover:text-foreground active:cursor-grabbing"
>
<HugeiconsIcon
icon={cardState === "otherAccount" ? LockKeyIcon : SparkleIcon}
Expand All @@ -391,7 +391,7 @@ export function LoadedModelsIndicator({
</TooltipContent>
</Tooltip>
) : (
<div className="menu-soft-surface menu-soft-edgeless pointer-events-auto flex min-h-0 w-[calc(268px*var(--ui-space-scale,1))] max-w-[calc(100vw-2rem)] flex-col overflow-hidden rounded-lg p-1 font-heading">
<div className="menu-soft-surface menu-soft-edgeless glass-card pointer-events-auto relative flex min-h-0 w-[calc(268px*var(--ui-space-scale,1))] max-w-[calc(100vw-2rem)] flex-col overflow-hidden rounded-lg p-1 font-heading">
<div className="flex items-center gap-1.5 px-1.5 pb-2.5 pt-0.5">
<HugeiconsIcon
icon={SparkleIcon}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function SharedRunConfigLinkHandler({
dismissLabel="Dismiss"
onDismiss={() => runConfigInbox.clear(pending.id)}
testId="shared-run-settings-unavailable"
className="fixed bottom-4 right-4 z-50 max-w-sm rounded-lg border bg-background p-4"
className="glass-card fixed bottom-4 right-4 z-50 max-w-sm rounded-lg border bg-background p-4"
/>
}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export function GuidedTour({
// Plain rounded, no corner-squircle: at this radius superellipse(2)
// hugs the corner about twice as tightly as the arc, which reads as a
// boxed-in card rather than a rounded one.
"relative overflow-hidden rounded-3xl",
"glass-card relative overflow-hidden rounded-3xl",
"bg-white/95 text-foreground ring-1 ring-[rgb(0_0_0_/_calc(0.1*var(--contrast-edge-gain,1)))] dark:bg-zinc-900/96 dark:text-zinc-100 dark:ring-[rgb(255_255_255_/_calc(0.12*var(--contrast-edge-gain,1)))]",
"shadow-[0_30px_120px_rgba(0,0,0,0.35)]",
)}
Expand Down
2 changes: 1 addition & 1 deletion studio/frontend/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const en = {
scope: "Show on",
scopeNewChat: "New chat page",
scopeChats: "Chats",
scopeAll: "All pages",
scopeAll: "All pages (everything)",
positionValue: "Horizontal {x}%, vertical {y}%",
newChat: "New chat preview",
conversation: "Conversation preview",
Expand Down
Loading
Loading