fix(web): appearance classes use theme tokens and scale values (#13397)
Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
This commit is contained in:
1 parent
315fcca10a
commit
f26ee083fe
109 files changed
+464
-433
No files matched your search
@@ -175,7 +175,7 @@ export function BrowserDeviceToolbar({
|
||||
}}
|
||||
>
|
||||
{width >= 560 ? (
|
||||
<span className="mr-0.5 shrink-0 text-[11px] font-medium text-muted-foreground">
|
||||
<span className="mr-0.5 shrink-0 text-2xs font-medium text-muted-foreground">
|
||||
Dimensions
|
||||
</span>
|
||||
) : null}
|
||||
|
||||
@@ -352,7 +352,7 @@ export function HostedBrowserWebview(props: {
|
||||
/>
|
||||
{activeDrag ? (
|
||||
<div
|
||||
className="pointer-events-none absolute z-40 -translate-x-1/2 rounded-md border border-border/80 bg-background/95 px-2 py-1 text-[11px] font-medium tabular-nums text-foreground shadow-md backdrop-blur-sm"
|
||||
className="pointer-events-none absolute z-40 -translate-x-1/2 rounded-md border border-border/80 bg-background/95 px-2 py-1 text-2xs font-medium tabular-nums text-foreground shadow-md backdrop-blur-sm"
|
||||
style={{
|
||||
left: layout.viewportX + layout.viewportWidth / 2,
|
||||
top: layout.viewportY + 10,
|
||||
|
||||
@@ -162,12 +162,12 @@ function AgentRow({ agent }: { agent: RuntimeSubagent }) {
|
||||
<span className="col-start-2 row-start-1 flex min-w-0 items-baseline gap-2">
|
||||
<span className="min-w-0 truncate text-sm font-medium">{agent.title}</span>
|
||||
{role ? (
|
||||
<span className="max-w-28 shrink-0 truncate rounded-sm border border-border/60 px-1 font-mono text-[.65rem] text-muted-foreground">
|
||||
<span className="max-w-28 shrink-0 truncate rounded-sm border border-border/60 px-1 font-mono text-3xs text-muted-foreground">
|
||||
{role}
|
||||
</span>
|
||||
) : null}
|
||||
</span>
|
||||
<span className="col-start-3 row-start-1 min-w-14 text-right font-mono text-[.7rem] text-muted-foreground/80">
|
||||
<span className="col-start-3 row-start-1 min-w-14 text-right font-mono text-2xs text-muted-foreground/80">
|
||||
<span className="inline-flex items-center gap-1">
|
||||
<AgentElapsed agent={agent} />
|
||||
{agent.status === "completed" ? (
|
||||
@@ -183,7 +183,7 @@ function AgentRow({ agent }: { agent: RuntimeSubagent }) {
|
||||
>
|
||||
{activity ?? statusLabel}
|
||||
</span>
|
||||
<span className="col-start-2 col-end-4 row-start-3 truncate font-mono text-[.7rem] tabular-nums text-muted-foreground/70">
|
||||
<span className="col-start-2 col-end-4 row-start-3 truncate font-mono text-2xs tabular-nums text-muted-foreground/70">
|
||||
{metadata.join(" · ")}
|
||||
</span>
|
||||
<span className="sr-only">{statusLabel}</span>
|
||||
@@ -234,7 +234,7 @@ function PhaseRail({ group }: { group: AgentPanelWorkflowGroup }) {
|
||||
>
|
||||
<span
|
||||
className={cn(
|
||||
"font-mono text-[.65rem]",
|
||||
"font-mono text-3xs",
|
||||
phase.state === "running"
|
||||
? "text-info-foreground"
|
||||
: phase.state === "done"
|
||||
@@ -247,7 +247,7 @@ function PhaseRail({ group }: { group: AgentPanelWorkflowGroup }) {
|
||||
</span>
|
||||
<span className="flex items-center gap-0.5">
|
||||
{phase.members.length === 0 ? (
|
||||
<span className="font-mono text-[.6rem] text-muted-foreground/50">–</span>
|
||||
<span className="font-mono text-3xs text-muted-foreground/50">–</span>
|
||||
) : (
|
||||
phase.members.map((member) => <StatusDot key={member.id} status={member.status} />)
|
||||
)}
|
||||
@@ -281,7 +281,7 @@ function WorkflowScriptView({
|
||||
<div className="mx-1.5 mb-1 rounded-md border border-border/60 bg-background/60">
|
||||
<div className="flex items-center gap-2 border-b border-border/50 px-2 py-1">
|
||||
<Braces aria-hidden className="size-3 text-muted-foreground" />
|
||||
<span className="truncate font-mono text-[.65rem] text-muted-foreground">
|
||||
<span className="truncate font-mono text-3xs text-muted-foreground">
|
||||
{scriptPath.split("/").at(-1)}
|
||||
</span>
|
||||
<Button
|
||||
@@ -296,7 +296,7 @@ function WorkflowScriptView({
|
||||
</div>
|
||||
<div className="max-h-72 overflow-auto p-2">
|
||||
{result._tag === "Success" ? (
|
||||
<pre className="whitespace-pre-wrap break-words font-mono text-[.7rem] leading-relaxed text-foreground/90">
|
||||
<pre className="whitespace-pre-wrap break-words font-mono text-2xs leading-relaxed text-foreground/90">
|
||||
{result.value.contents}
|
||||
{result.value.truncated ? "\n… (truncated)" : ""}
|
||||
</pre>
|
||||
@@ -339,7 +339,7 @@ function PhaseSection({
|
||||
onClick={() => setOpen((value) => !value)}
|
||||
aria-expanded={open}
|
||||
className={cn(
|
||||
"mt-2 flex w-full items-center gap-1.5 rounded-sm px-1.5 text-left text-[.65rem] font-medium uppercase tracking-wider hover:bg-accent/40",
|
||||
"mt-2 flex w-full items-center gap-1.5 rounded-sm px-1.5 text-left text-3xs font-medium uppercase tracking-wider hover:bg-accent/40",
|
||||
phase.state === "done"
|
||||
? "text-success-foreground"
|
||||
: phase.state === "running"
|
||||
@@ -399,7 +399,7 @@ function ExpandedWorkflowSection({
|
||||
const canShowScript = scriptPath !== undefined && environmentId !== null && threadId !== null;
|
||||
return (
|
||||
<section className="rounded-lg border border-border/50 bg-card/30 p-1.5">
|
||||
<div className="flex items-center gap-2 px-1.5 pt-0.5 text-[.65rem] font-medium uppercase tracking-wider text-muted-foreground">
|
||||
<div className="flex items-center gap-2 px-1.5 pt-0.5 text-3xs font-medium uppercase tracking-wider text-muted-foreground">
|
||||
<StatusDot status={group.workflow.status} />
|
||||
<span className="min-w-0 truncate">
|
||||
{group.workflow.workflowName ?? group.workflow.title}
|
||||
@@ -486,7 +486,7 @@ function CollapsedWorkflowSection({
|
||||
<span className="truncate text-sm">
|
||||
{group.workflow.workflowName ?? group.workflow.title}
|
||||
</span>
|
||||
<span className="ml-auto flex items-center gap-1.5 font-mono text-[.7rem] text-muted-foreground/80">
|
||||
<span className="ml-auto flex items-center gap-1.5 font-mono text-2xs text-muted-foreground/80">
|
||||
{failed > 0 ? <span className="text-destructive-foreground">{failed} failed</span> : null}
|
||||
<span>{members.length} agents</span>
|
||||
<span className="tabular-nums">· {formatSubagentTokenCount(totalTokens)} tok</span>
|
||||
@@ -557,7 +557,7 @@ export function AgentsPanel({
|
||||
))}
|
||||
{model.directAgents.length > 0 ? (
|
||||
<section>
|
||||
<div className="px-1.5 pt-1 text-[.65rem] font-medium uppercase tracking-wider text-muted-foreground">
|
||||
<div className="px-1.5 pt-1 text-3xs font-medium uppercase tracking-wider text-muted-foreground">
|
||||
Direct spawns
|
||||
</div>
|
||||
{model.directAgents.map((agent) => (
|
||||
@@ -567,7 +567,7 @@ export function AgentsPanel({
|
||||
) : null}
|
||||
</div>
|
||||
</ScrollArea>
|
||||
<footer className="flex items-center justify-between border-t border-border/60 px-3 py-1.5 font-mono text-[.7rem] text-muted-foreground">
|
||||
<footer className="flex items-center justify-between border-t border-border/60 px-3 py-1.5 font-mono text-2xs text-muted-foreground">
|
||||
<span className="flex items-center gap-2">
|
||||
{model.runningCount + model.waitingCount > 0 ? (
|
||||
<span className="text-info-foreground">
|
||||
|
||||
@@ -185,7 +185,7 @@ const MobileRunContextSelector = memo(function MobileRunContextSelector({
|
||||
>
|
||||
<span
|
||||
data-composer-label-motion
|
||||
className="block w-full min-w-0 max-w-[240px] truncate transition-opacity duration-180 ease-[cubic-bezier(0.32,0.72,0,1)] group-data-[compact]/composer-context:opacity-0 motion-reduce:transition-none"
|
||||
className="block w-full min-w-0 max-w-[240px] truncate transition-opacity duration-180 ease-drawer group-data-[compact]/composer-context:opacity-0 motion-reduce:transition-none"
|
||||
>
|
||||
{autoEnvironmentLabel ??
|
||||
(showEnvironmentIndicator ? (activeEnvironment?.label ?? "Run on") : workspaceLabel)}
|
||||
@@ -197,7 +197,7 @@ const MobileRunContextSelector = memo(function MobileRunContextSelector({
|
||||
if (isLocked) {
|
||||
return (
|
||||
<span
|
||||
className="inline-flex h-7 min-w-0 max-w-[48%] flex-initial items-center justify-start gap-1 rounded-md border border-transparent px-[calc(--spacing(2)-1px)] font-normal text-muted-foreground/70 text-xs sm:h-6"
|
||||
className="inline-flex h-7 min-w-0 max-w-[48%] flex-initial items-center justify-start gap-1 rounded-md border border-transparent px-1.75 font-normal text-muted-foreground/70 text-xs sm:h-6"
|
||||
data-composer-context-control
|
||||
>
|
||||
{triggerContent}
|
||||
|
||||
@@ -757,7 +757,7 @@ export function BranchToolbarBranchSelector({
|
||||
>
|
||||
<div className="flex w-full min-w-0 items-center justify-between gap-2">
|
||||
<MiddleTruncate value={itemValue} className="flex-1" />
|
||||
{badge && <span className="shrink-0 text-[10px] text-muted-foreground/45">{badge}</span>}
|
||||
{badge && <span className="shrink-0 text-3xs text-muted-foreground/45">{badge}</span>}
|
||||
</div>
|
||||
</ComboboxItem>
|
||||
);
|
||||
@@ -819,7 +819,7 @@ export function BranchToolbarBranchSelector({
|
||||
>
|
||||
<span
|
||||
data-composer-label-motion
|
||||
className="flex w-full max-w-[240px] transition-opacity duration-180 ease-[cubic-bezier(0.32,0.72,0,1)] group-data-[compact]/composer-context:opacity-0 motion-reduce:transition-none"
|
||||
className="flex w-full max-w-[240px] transition-opacity duration-180 ease-drawer group-data-[compact]/composer-context:opacity-0 motion-reduce:transition-none"
|
||||
>
|
||||
<MiddleTruncate value={triggerLabel} />
|
||||
</span>
|
||||
|
||||
@@ -61,7 +61,7 @@ export const BranchToolbarEnvModeSelector = memo(function BranchToolbarEnvModeSe
|
||||
<Tooltip>
|
||||
<TooltipTrigger
|
||||
render={<span />}
|
||||
className="inline-flex h-7 min-w-0 items-center gap-1 border border-transparent px-[calc(--spacing(2)-1px)] font-normal text-muted-foreground/70 text-xs sm:h-6"
|
||||
className="inline-flex h-7 min-w-0 items-center gap-1 border border-transparent px-1.75 font-normal text-muted-foreground/70 text-xs sm:h-6"
|
||||
data-composer-context-control
|
||||
>
|
||||
{forceNewWorktree ? (
|
||||
@@ -77,7 +77,7 @@ export const BranchToolbarEnvModeSelector = memo(function BranchToolbarEnvModeSe
|
||||
>
|
||||
<span
|
||||
data-composer-label-motion
|
||||
className="block w-full min-w-0 max-w-[240px] truncate transition-opacity duration-180 ease-[cubic-bezier(0.32,0.72,0,1)] group-data-[compact]/composer-context:opacity-0 motion-reduce:transition-none"
|
||||
className="block w-full min-w-0 max-w-[240px] truncate transition-opacity duration-180 ease-drawer group-data-[compact]/composer-context:opacity-0 motion-reduce:transition-none"
|
||||
>
|
||||
{forceNewWorktree
|
||||
? resolveEnvModeLabel("worktree")
|
||||
@@ -133,7 +133,7 @@ export const BranchToolbarEnvModeSelector = memo(function BranchToolbarEnvModeSe
|
||||
>
|
||||
<span
|
||||
data-composer-label-motion
|
||||
className="block w-full min-w-0 max-w-[240px] truncate transition-opacity duration-180 ease-[cubic-bezier(0.32,0.72,0,1)] group-data-[compact]/composer-context:opacity-0 motion-reduce:transition-none"
|
||||
className="block w-full min-w-0 max-w-[240px] truncate transition-opacity duration-180 ease-drawer group-data-[compact]/composer-context:opacity-0 motion-reduce:transition-none"
|
||||
>
|
||||
<SelectValue />
|
||||
</span>
|
||||
|
||||
@@ -63,7 +63,7 @@ export const BranchToolbarEnvironmentSelector = memo(function BranchToolbarEnvir
|
||||
<Tooltip>
|
||||
<TooltipTrigger
|
||||
render={<span />}
|
||||
className="inline-flex h-7 min-w-0 max-w-full items-center gap-1 border border-transparent px-[calc(--spacing(2)-1px)] font-normal text-muted-foreground/70 text-xs sm:h-6"
|
||||
className="inline-flex h-7 min-w-0 max-w-full items-center gap-1 border border-transparent px-1.75 font-normal text-muted-foreground/70 text-xs sm:h-6"
|
||||
data-composer-context-control
|
||||
>
|
||||
<EnvironmentMachineIcon
|
||||
@@ -76,7 +76,7 @@ export const BranchToolbarEnvironmentSelector = memo(function BranchToolbarEnvir
|
||||
>
|
||||
<span
|
||||
data-composer-label-motion
|
||||
className="block w-full min-w-0 max-w-[240px] truncate transition-opacity duration-180 ease-[cubic-bezier(0.32,0.72,0,1)] group-data-[compact]/composer-context:opacity-0 motion-reduce:transition-none"
|
||||
className="block w-full min-w-0 max-w-[240px] truncate transition-opacity duration-180 ease-drawer group-data-[compact]/composer-context:opacity-0 motion-reduce:transition-none"
|
||||
>
|
||||
{activeEnvironment?.label ?? "Run on"}
|
||||
</span>
|
||||
@@ -123,7 +123,7 @@ export const BranchToolbarEnvironmentSelector = memo(function BranchToolbarEnvir
|
||||
>
|
||||
<span
|
||||
data-composer-label-motion
|
||||
className="block w-full min-w-0 max-w-[240px] truncate transition-opacity duration-180 ease-[cubic-bezier(0.32,0.72,0,1)] group-data-[compact]/composer-context:opacity-0 motion-reduce:transition-none"
|
||||
className="block w-full min-w-0 max-w-[240px] truncate transition-opacity duration-180 ease-drawer group-data-[compact]/composer-context:opacity-0 motion-reduce:transition-none"
|
||||
>
|
||||
<SelectValue />
|
||||
</span>
|
||||
|
||||
@@ -974,12 +974,12 @@ function MarkdownCodeBlock({
|
||||
|
||||
return (
|
||||
<div
|
||||
className="chat-markdown-codeblock my-[0.65rem] overflow-hidden rounded-[var(--radius)] border border-border/70 bg-secondary leading-snug dark:border-transparent dark:bg-input/32"
|
||||
className="chat-markdown-codeblock my-[0.65rem] overflow-hidden rounded-lg border border-border/70 bg-secondary leading-snug dark:border-transparent dark:bg-input/32"
|
||||
data-language={language}
|
||||
data-wrap={wrapped ? "true" : "false"}
|
||||
>
|
||||
<div className="chat-markdown-codeblock-header flex items-center justify-between gap-2 pt-1.5 pr-1.5 pb-0 pl-3 select-none">
|
||||
<span className="inline-flex min-w-0 items-center gap-[0.4rem] [font-family:var(--font-mono,ui-monospace,SFMono-Regular,monospace)] [font-size:0.6875rem]">
|
||||
<span className="inline-flex min-w-0 items-center gap-1.5 font-mono text-2xs">
|
||||
<MarkdownCodeBlockTitleContent
|
||||
fenceTitle={fenceTitle}
|
||||
language={language}
|
||||
@@ -2201,7 +2201,7 @@ const MarkdownFileLink = memo(function MarkdownFileLink({
|
||||
<TooltipPopup side="top" variant="code">
|
||||
{/* The full path: the chip already shows the shortened form, and a link
|
||||
to the workspace root collapses to a bare label that repeats it. */}
|
||||
<div className="overflow-x-auto whitespace-nowrap [scrollbar-color:color-mix(in_srgb,var(--contrast-border)_78%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-[color-mix(in_srgb,var(--contrast-border)_78%,transparent)] [&::-webkit-scrollbar-track]:bg-transparent">
|
||||
<div className="overflow-x-auto whitespace-nowrap scrollbar-thumb-border/78 scrollbar-track-transparent [scrollbar-width:thin] [&::-webkit-scrollbar]:h-1.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-border/78 [&::-webkit-scrollbar-track]:bg-transparent">
|
||||
{targetPath}
|
||||
</div>
|
||||
</TooltipPopup>
|
||||
|
||||
@@ -1220,7 +1220,7 @@ const PersistentThreadTerminalDrawer = memo(function PersistentThreadTerminalDra
|
||||
"grid shrink-0 overflow-clip",
|
||||
active ? (visible ? "grid-rows-[1fr]" : "grid-rows-[0fr]") : "hidden",
|
||||
active &&
|
||||
"[[data-panel-animations=true]_&]:transition-[grid-template-rows] [[data-panel-animations=true]_&]:[transition-duration:var(--panel-animation-duration)] [[data-panel-animations=true]_&]:ease-out",
|
||||
"[[data-panel-animations=true]_&]:transition-[grid-template-rows] [[data-panel-animations=true]_&]:duration-(--panel-animation-duration) [[data-panel-animations=true]_&]:ease-out",
|
||||
active && visible && "[[data-panel-animations=true]_&]:starting:grid-rows-[0fr]!",
|
||||
)}
|
||||
>
|
||||
@@ -9588,7 +9588,7 @@ export default function ChatView(props: ChatViewProps) {
|
||||
className={cn(
|
||||
"flex shrink-0",
|
||||
panelAnimationsActive &&
|
||||
"motion-safe:transition-opacity motion-safe:[transition-duration:var(--panel-animation-duration)] motion-safe:ease-out",
|
||||
"motion-safe:transition-opacity motion-safe:duration-(--panel-animation-duration) motion-safe:ease-out",
|
||||
rightPanelOpen ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0",
|
||||
)}
|
||||
inert={!rightPanelOpen}
|
||||
@@ -10015,7 +10015,7 @@ export default function ChatView(props: ChatViewProps) {
|
||||
>
|
||||
<div
|
||||
ref={attachDraftHeroTransitionGroupRef}
|
||||
className="w-full ps-[calc(env(safe-area-inset-left)+0.75rem)] pe-[calc(env(safe-area-inset-right)+0.75rem)] sm:ps-[calc(env(safe-area-inset-left)+1.25rem)] sm:pe-[calc(env(safe-area-inset-right)+1.25rem)]"
|
||||
className="w-full ps-(--workspace-gutter-start) pe-(--workspace-gutter-end)"
|
||||
>
|
||||
<div
|
||||
data-chat-composer-stack="true"
|
||||
|
||||
@@ -190,7 +190,7 @@ function resolvedThemeFromDocument(): "light" | "dark" {
|
||||
* paints the editor's node selection over it.
|
||||
*/
|
||||
const CHIP_NODE_SELECTION_CLASS_NAME =
|
||||
"relative inline-flex select-none items-center align-middle leading-none data-[composer-chip-selected]:after:pointer-events-none data-[composer-chip-selected]:after:absolute data-[composer-chip-selected]:after:inset-0 data-[composer-chip-selected]:after:rounded-[6px] data-[composer-chip-selected]:after:bg-[Highlight] data-[composer-chip-selected]:after:opacity-30 data-[composer-chip-selected]:after:content-['']";
|
||||
"relative inline-flex select-none items-center align-middle leading-none data-[composer-chip-selected]:after:pointer-events-none data-[composer-chip-selected]:after:absolute data-[composer-chip-selected]:after:inset-0 data-[composer-chip-selected]:after:rounded-sm data-[composer-chip-selected]:after:bg-[Highlight] data-[composer-chip-selected]:after:opacity-30 data-[composer-chip-selected]:after:content-['']";
|
||||
|
||||
const ComposerMentionExtension = Node.create({
|
||||
name: "composer-mention",
|
||||
@@ -1242,7 +1242,7 @@ function ComposerPromptEditorTiptapInner(props: ComposerPromptEditorProps) {
|
||||
<ComposerCitationCommentContext value={citationCommentActions}>
|
||||
<div
|
||||
className={cn(
|
||||
"relative flow-root [font-family:var(--font-composer,var(--font-sans))] [font-size:var(--font-size-prompt,0.875rem)] [@media(max-width:39.999rem)_and_(pointer:coarse)]:[font-size:max(var(--font-size-prompt,1rem),16px)]",
|
||||
"relative flow-root font-(family-name:--font-composer,var(--font-sans)) text-(length:--font-size-prompt,var(--text-sm)) max-sm:pointer-coarse:text-(length:--font-size-prompt-touch)",
|
||||
containerClassName,
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -23,7 +23,7 @@ import { cn } from "~/lib/utils";
|
||||
* span with tabIndex for a tooltip) gets the focus outline.
|
||||
*/
|
||||
const contextChipVariants = cva(
|
||||
"inline-flex h-[1.41em] max-w-full items-center gap-[0.33em] rounded-[0.5em] border px-[0.5em] align-middle font-medium text-[0.86em] leading-none [&_svg]:block [&_svg]:size-[1.17em] [&_svg]:shrink-0 [&_svg]:self-center [button&,a&,[data-popup-open]&]:cursor-pointer [button&,a&]:transition-colors [button&,a&]:motion-reduce:transition-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--contrast-foreground)] disabled:cursor-default",
|
||||
"inline-flex h-[1.41em] max-w-full items-center gap-[0.33em] rounded-[0.5em] border px-[0.5em] align-middle font-medium text-[0.86em] leading-none [&_svg]:block [&_svg]:size-[1.17em] [&_svg]:shrink-0 [&_svg]:self-center [button&,a&,[data-popup-open]&]:cursor-pointer [button&,a&]:transition-colors [button&,a&]:motion-reduce:transition-none focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-foreground disabled:cursor-default",
|
||||
{
|
||||
defaultVariants: { kind: "neutral" },
|
||||
variants: {
|
||||
@@ -71,7 +71,7 @@ const contextChipVariants = cva(
|
||||
"citation",
|
||||
],
|
||||
className:
|
||||
"border-[color-mix(in_oklab,var(--context-chip-accent)_34%,var(--contrast-border))] bg-[color-mix(in_oklab,var(--context-chip-accent)_11%,transparent)] text-[color-mix(in_oklab,var(--context-chip-accent)_22%,var(--contrast-foreground))] [button:enabled&,a&]:hover:border-[color-mix(in_oklab,var(--context-chip-accent)_48%,var(--contrast-border))] [button:enabled&,a&]:hover:bg-[color-mix(in_oklab,var(--context-chip-accent)_17%,transparent)]",
|
||||
"[--context-chip-border:color-mix(in_oklab,var(--context-chip-accent)_34%,var(--contrast-border))] [--context-chip-border-hover:color-mix(in_oklab,var(--context-chip-accent)_48%,var(--contrast-border))] [--context-chip-foreground:color-mix(in_oklab,var(--context-chip-accent)_22%,var(--contrast-foreground))] border-(--context-chip-border) bg-(--context-chip-accent)/11 text-(--context-chip-foreground) [button:enabled&,a&]:hover:border-(--context-chip-border-hover) [button:enabled&,a&]:hover:bg-(--context-chip-accent)/17",
|
||||
},
|
||||
// State colors win over any kind.
|
||||
{ state: "unresolved", className: "text-foreground" },
|
||||
@@ -115,7 +115,7 @@ function ContextChipLabel({ className, ...props }: React.ComponentProps<"span">)
|
||||
function ContextChipAction({ className, render, ...props }: useRender.ComponentProps<"button">) {
|
||||
const defaultProps = {
|
||||
className: cn(
|
||||
"ml-[0.17em] inline-flex size-[1.17em] shrink-0 cursor-pointer items-center justify-center rounded-sm text-current transition-colors hover:bg-[color-mix(in_oklab,var(--context-chip-accent,var(--color-foreground))_17%,transparent)] focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring motion-reduce:transition-none [&_svg]:size-[0.85em]",
|
||||
"ml-[0.17em] inline-flex size-[1.17em] shrink-0 cursor-pointer items-center justify-center rounded-sm text-current transition-colors hover:bg-(--context-chip-accent,var(--color-foreground))/17 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring motion-reduce:transition-none [&_svg]:size-[0.85em]",
|
||||
className,
|
||||
),
|
||||
"data-slot": "context-chip-action",
|
||||
|
||||
@@ -765,7 +765,7 @@ export default function DiffPanel({
|
||||
value={baseRefQuery}
|
||||
onChange={(event) => setBaseRefQuery(event.target.value)}
|
||||
/>
|
||||
<div className="grid shrink-0 grid-cols-[1rem_minmax(0,1fr)] items-center gap-2 border-b border-border/70 ps-3 pe-6.5 pt-2 pb-1.5 font-medium text-[10px] text-muted-foreground uppercase tracking-wide">
|
||||
<div className="grid shrink-0 grid-cols-[1rem_minmax(0,1fr)] items-center gap-2 border-b border-border/70 ps-3 pe-6.5 pt-2 pb-1.5 font-medium text-3xs text-muted-foreground uppercase tracking-wide">
|
||||
<span aria-hidden="true" />
|
||||
<div className="grid min-w-0 grid-cols-[minmax(0,1fr)_2rem] items-center">
|
||||
<span>Branch</span>
|
||||
@@ -841,7 +841,7 @@ export default function DiffPanel({
|
||||
<DiffStatLabel
|
||||
additions={diffLineStat.additions}
|
||||
deletions={diffLineStat.deletions}
|
||||
className="mr-1 text-[11px]"
|
||||
className="mr-1 text-2xs"
|
||||
layout="inline"
|
||||
/>
|
||||
) : null}
|
||||
@@ -992,14 +992,14 @@ export default function DiffPanel({
|
||||
<>
|
||||
<div className="flex min-h-0 min-w-0 flex-1 flex-col overflow-hidden bg-background">
|
||||
{isSelectedPatchTruncated && !lazySource && (
|
||||
<p className="shrink-0 border-b border-border/70 bg-muted/40 px-3 py-1.5 text-[11px] text-muted-foreground">
|
||||
<p className="shrink-0 border-b border-border/70 bg-muted/40 px-3 py-1.5 text-2xs text-muted-foreground">
|
||||
This preview exceeds the size limit. Changes shown are incomplete.
|
||||
{selectedGitSource?.files ? " Totals include all changes." : ""}
|
||||
</p>
|
||||
)}
|
||||
{selectedPatchError && !renderablePatch && (
|
||||
<div className="px-3">
|
||||
<p className="mb-2 text-[11px] text-error/80">{selectedPatchError}</p>
|
||||
<p className="mb-2 text-2xs text-error/80">{selectedPatchError}</p>
|
||||
</div>
|
||||
)}
|
||||
{!renderablePatch && !lazySource ? (
|
||||
@@ -1181,12 +1181,12 @@ export default function DiffPanel({
|
||||
) : (
|
||||
<div className="min-h-0 flex-1 overflow-auto p-2">
|
||||
<div className="space-y-2">
|
||||
<p className="text-[11px] text-muted-foreground/75">
|
||||
<p className="text-2xs text-muted-foreground/75">
|
||||
{renderablePatch?.kind === "raw" ? renderablePatch.reason : null}
|
||||
</p>
|
||||
<pre
|
||||
className={cn(
|
||||
"max-h-[72vh] rounded-md border border-border/70 bg-background/70 p-3 font-mono text-[11px] leading-relaxed text-muted-foreground/90",
|
||||
"max-h-[72vh] rounded-md border border-border/70 bg-background/70 p-3 font-mono text-2xs leading-relaxed text-muted-foreground/90",
|
||||
wordWrap
|
||||
? "overflow-auto whitespace-pre-wrap wrap-break-word"
|
||||
: "overflow-auto",
|
||||
|
||||
@@ -13,7 +13,7 @@ function getDiffPanelHeaderRowClassName(mode: DiffPanelMode) {
|
||||
"flex items-center justify-between gap-2",
|
||||
mode === "embedded" ? "px-2" : "px-4",
|
||||
shouldUseDragRegion
|
||||
? "drag-region h-[var(--workspace-topbar-height)] border-b border-border wco:h-[env(titlebar-area-height)] wco:pr-[calc(100vw-env(titlebar-area-width)-env(titlebar-area-x)+1em)]"
|
||||
? "drag-region h-[var(--workspace-topbar-height)] border-b border-border wco:h-[env(titlebar-area-height)] wco:pr-(--workspace-native-controls-inset)"
|
||||
: "flex h-10 min-h-10 shrink-0 items-center border-b border-border/60 bg-background in-data-[preview-panel-mode=inline]:mb-3 in-data-[preview-panel-mode=inline]:h-7 in-data-[preview-panel-mode=inline]:min-h-7 in-data-[preview-panel-mode=inline]:border-b-transparent",
|
||||
);
|
||||
}
|
||||
|
||||
@@ -234,7 +234,7 @@ const PROJECT_GROUPING_MODE_LABELS: Record<SidebarProjectGroupingMode, string> =
|
||||
separate: "Keep separate",
|
||||
};
|
||||
const SIDEBAR_ICON_ACTION_BUTTON_CLASS =
|
||||
"inline-flex h-6 min-w-6 cursor-pointer items-center justify-center rounded-md px-[calc(--spacing(1)-1px)] text-icon-muted hover:text-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring";
|
||||
"inline-flex h-6 min-w-6 cursor-pointer items-center justify-center rounded-md px-0.75 text-icon-muted hover:text-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring";
|
||||
|
||||
function SidebarThreadDetailPrewarmer({ threadRef }: { readonly threadRef: ScopedThreadRef }) {
|
||||
useEnvironmentThread(threadRef.environmentId, threadRef.threadId);
|
||||
@@ -850,7 +850,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
|
||||
data-thread-selection-safe
|
||||
data-testid={`thread-archive-confirm-${thread.id}`}
|
||||
aria-label={`Confirm archive ${thread.title}`}
|
||||
className="absolute top-1/2 right-1 inline-flex h-5 -translate-y-1/2 cursor-pointer items-center rounded-md bg-destructive/12 px-2 text-[10px] font-medium text-destructive transition-colors hover:bg-destructive/18 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-destructive/40"
|
||||
className="absolute top-1/2 right-1 inline-flex h-5 -translate-y-1/2 cursor-pointer items-center rounded-md bg-destructive/12 px-2 text-3xs font-medium text-destructive transition-colors hover:bg-destructive/18 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-destructive/40"
|
||||
onPointerDown={stopPropagationOnPointerDown}
|
||||
onClick={handleConfirmArchiveClick}
|
||||
>
|
||||
@@ -920,7 +920,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
|
||||
render={
|
||||
<span
|
||||
aria-label={jumpLabel}
|
||||
className="inline-flex h-5 items-center rounded-full border border-border/80 bg-background/90 px-1.5 font-mono text-[10px] font-medium tracking-tight text-foreground shadow-sm"
|
||||
className="inline-flex h-5 items-center rounded-full border border-border/80 bg-background/90 px-1.5 font-mono text-3xs font-medium tracking-tight text-foreground shadow-sm"
|
||||
/>
|
||||
}
|
||||
>
|
||||
@@ -930,7 +930,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
|
||||
</Tooltip>
|
||||
) : (
|
||||
<span
|
||||
className={`text-[10px] tabular-nums ${
|
||||
className={`text-3xs tabular-nums ${
|
||||
isHighlighted ? "text-foreground" : "text-secondary-label"
|
||||
}`}
|
||||
>
|
||||
@@ -2410,7 +2410,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
|
||||
{project.displayName}
|
||||
</span>
|
||||
{project.groupedProjectCount > 1 ? (
|
||||
<span className="shrink-0 text-secondary-label text-[10px]">
|
||||
<span className="shrink-0 text-secondary-label text-3xs">
|
||||
{project.groupedProjectCount} projects
|
||||
</span>
|
||||
) : null}
|
||||
|
||||
@@ -19,7 +19,7 @@ const DynamicIcon = lazy(() =>
|
||||
);
|
||||
|
||||
function DynamicProjectIconFallback() {
|
||||
return <FolderCodeIcon className="size-full text-[inherit]" />;
|
||||
return <FolderCodeIcon className="size-full text-inherit" />;
|
||||
}
|
||||
|
||||
// The slice of a project that decides its icon. Every surface must pass the
|
||||
@@ -176,7 +176,7 @@ function ProjectFaviconImage({
|
||||
<img
|
||||
src={displayedSrc}
|
||||
alt=""
|
||||
className={cn("size-3.5 shrink-0 rounded-[37.5%] object-contain", className)}
|
||||
className={cn("size-3.5 shrink-0 rounded-[25%] object-contain", className)}
|
||||
onError={() => handleLoadError(displayedSrc)}
|
||||
/>
|
||||
) : null}
|
||||
|
||||
@@ -15,7 +15,7 @@ export function PullRequestContextDetails({ metadata }: { metadata: PullRequestC
|
||||
<span className={state.toneClassName}>{state.label}</span>
|
||||
</div>
|
||||
<div className="wrap-break-word text-foreground">{metadata.title}</div>
|
||||
<div className="flex min-w-0 items-center gap-1 text-secondary-label text-[10px]">
|
||||
<div className="flex min-w-0 items-center gap-1 text-secondary-label text-3xs">
|
||||
<code className="truncate">{metadata.headBranch}</code>
|
||||
<ArrowRightIcon className="size-3 shrink-0" aria-hidden="true" />
|
||||
<code className="truncate">{metadata.baseBranch}</code>
|
||||
|
||||
@@ -488,7 +488,7 @@ function RightPanelEmptyState(props: {
|
||||
{action.badgeCount > 0 ? (
|
||||
<span
|
||||
aria-hidden
|
||||
className="absolute -top-1.5 -right-2 flex h-3.5 min-w-3.5 items-center justify-center rounded-full bg-info px-1 text-[9px] font-semibold tabular-nums text-white"
|
||||
className="absolute -top-1.5 -right-2 flex h-3.5 min-w-3.5 items-center justify-center rounded-full bg-info px-1 text-3xs font-semibold tabular-nums text-white"
|
||||
>
|
||||
{action.badgeCount}
|
||||
</span>
|
||||
@@ -505,13 +505,13 @@ function RightPanelEmptyState(props: {
|
||||
aria-label="Open a surface"
|
||||
data-surface-launcher-keys={availableActions.map((action) => action.shortcut).join("")}
|
||||
className={cn(
|
||||
"flex min-h-0 flex-1 items-center justify-center overflow-y-auto px-6 pt-6 outline-none",
|
||||
"flex min-h-0 flex-1 items-center justify-center overflow-y-auto px-6 outline-none",
|
||||
// The panel topbar sits above this container; matching bottom padding
|
||||
// keeps the list centered against the full panel, not the leftover.
|
||||
"pb-[calc(var(--workspace-topbar-height)+--spacing(6))]",
|
||||
"pb-(--workspace-topbar-height)",
|
||||
)}
|
||||
>
|
||||
<div className="w-full max-w-xs">
|
||||
<div className="w-full max-w-xs py-6">
|
||||
<h3 className="mb-3 text-center font-medium text-foreground text-sm">Open a surface</h3>
|
||||
<div className="flex flex-col gap-0.5">
|
||||
{actions.map((action) =>
|
||||
@@ -534,7 +534,7 @@ function RightPanelEmptyState(props: {
|
||||
type="button"
|
||||
onClick={action.onClick}
|
||||
className={cn(
|
||||
"flex h-8 w-full cursor-pointer items-center gap-2.5 rounded-[var(--control-radius)] px-2.5 text-left text-sm transition-colors group-hover:bg-accent/60",
|
||||
"flex h-8 w-full cursor-pointer items-center gap-2.5 rounded-(--control-radius) px-2.5 text-left text-sm transition-colors group-hover:bg-accent/60",
|
||||
isHighlighted(action) && "bg-accent/60",
|
||||
)}
|
||||
>
|
||||
@@ -589,7 +589,7 @@ function RightPanelEmptyState(props: {
|
||||
<div
|
||||
tabIndex={0}
|
||||
aria-disabled="true"
|
||||
className="flex h-8 w-full cursor-default items-center gap-2.5 rounded-[var(--control-radius)] px-2.5 text-left text-sm opacity-50"
|
||||
className="flex h-8 w-full cursor-default items-center gap-2.5 rounded-(--control-radius) px-2.5 text-left text-sm opacity-50"
|
||||
>
|
||||
{actionIcon(action, "size-4")}
|
||||
<span className="min-w-0 flex-1 truncate">{action.label}</span>
|
||||
@@ -1114,10 +1114,7 @@ export function RightPanelTabs(props: RightPanelTabsProps) {
|
||||
// controls a few pixels higher and the cluster jumps on open.
|
||||
props.mode === "inline" && !props.layoutControls ? "pr-28" : "pr-3",
|
||||
ownsDesktopTitleBar && "drag-region",
|
||||
ownsDesktopTitleBar &&
|
||||
(props.layoutControls
|
||||
? "wco:pr-[var(--workspace-native-controls-inset)]"
|
||||
: "wco:pr-[calc(var(--workspace-native-controls-inset)+6rem)]"),
|
||||
ownsDesktopTitleBar && "wco:pr-(--workspace-native-controls-inset)",
|
||||
props.mode === "inline" && props.maximized && COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS,
|
||||
)}
|
||||
data-right-panel-tabbar
|
||||
@@ -1395,6 +1392,10 @@ export function RightPanelTabs(props: RightPanelTabsProps) {
|
||||
</div>
|
||||
) : null}
|
||||
{props.layoutControls}
|
||||
{ownsDesktopTitleBar && !props.layoutControls ? (
|
||||
// Keeps the tabs clear of the window controls when the layout toggles live elsewhere.
|
||||
<span aria-hidden className="hidden w-24 shrink-0 wco:block" />
|
||||
) : null}
|
||||
{ownsDesktopTitleBar ? (
|
||||
<span
|
||||
aria-hidden
|
||||
|
||||
@@ -283,7 +283,7 @@ function JumpHintBadge(props: { label: string }) {
|
||||
return (
|
||||
<span
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute right-1.5 top-1/2 z-10 inline-flex h-5 -translate-y-1/2 items-center rounded-full border border-border/80 bg-background/95 px-1.5 font-mono text-[10px] font-medium tracking-tight text-foreground shadow-sm"
|
||||
className="pointer-events-none absolute right-1.5 top-1/2 z-10 inline-flex h-5 -translate-y-1/2 items-center rounded-full border border-border/80 bg-background/95 px-1.5 font-mono text-3xs font-medium tracking-tight text-foreground shadow-sm"
|
||||
>
|
||||
{props.label}
|
||||
</span>
|
||||
@@ -760,7 +760,7 @@ const SidebarDraftRow = memo(function SidebarDraftRow(props: {
|
||||
onClick={handleActivate}
|
||||
onKeyDown={handleKeyDown}
|
||||
>
|
||||
<div className="relative z-10 h-[4.875rem] px-[var(--sidebar-row-content-inset)] py-[var(--sidebar-content-inset)]">
|
||||
<div className="relative z-10 h-[4.875rem] px-(--sidebar-row-content-inset) py-(--sidebar-content-inset)">
|
||||
<div className="flex h-5 min-w-0 items-center gap-1.5">
|
||||
<SquarePenIcon aria-hidden className={draftPenClassName} />
|
||||
{props.project ? (
|
||||
@@ -1408,7 +1408,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
|
||||
// keeps the hover color applied, so both the tint and the solid sidebar
|
||||
// color are stacked as background images.
|
||||
props.sortable?.isDragging &&
|
||||
"bg-[linear-gradient(var(--sidebar-row-active),var(--sidebar-row-active)),linear-gradient(var(--sidebar),var(--sidebar))] text-sidebar-foreground opacity-100 shadow-lg",
|
||||
"bg-sidebar bg-linear-to-b from-sidebar-row-active to-sidebar-row-active text-sidebar-foreground opacity-100 shadow-lg",
|
||||
);
|
||||
// dnd-kit props for the row root. Same bag on both variants: every row in
|
||||
// the list translates around the gap as the drag passes it.
|
||||
@@ -1433,7 +1433,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
|
||||
sortable?.isDragging && props.dropVerb !== null ? (
|
||||
<span
|
||||
role="status"
|
||||
className="pointer-events-none ml-auto inline-flex h-5 shrink-0 items-center gap-1 rounded-sm border border-primary/40 bg-primary/10 px-1.5 text-[11px] font-medium text-primary"
|
||||
className="pointer-events-none ml-auto inline-flex h-5 shrink-0 items-center gap-1 rounded-sm border border-primary/40 bg-primary/10 px-1.5 text-2xs font-medium text-primary"
|
||||
>
|
||||
{dropVerbBadge[props.dropVerb]}
|
||||
</span>
|
||||
@@ -1478,7 +1478,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
|
||||
? "text-muted-foreground"
|
||||
: "text-secondary-label/70",
|
||||
),
|
||||
isRegeneratingTitle && "opacity-[0.55]",
|
||||
isRegeneratingTitle && "opacity-55",
|
||||
)}
|
||||
>
|
||||
{thread.title}
|
||||
@@ -1745,7 +1745,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
|
||||
/>
|
||||
}
|
||||
>
|
||||
<div className="relative z-10 h-[4.875rem] px-[var(--sidebar-row-content-inset)] py-[var(--sidebar-content-inset)]">
|
||||
<div className="relative z-10 h-[4.875rem] px-(--sidebar-row-content-inset) py-(--sidebar-content-inset)">
|
||||
<div className="flex h-5 min-w-0 items-center gap-1.5">
|
||||
{draftIndicator}
|
||||
{props.project ? (
|
||||
@@ -1956,7 +1956,7 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: {
|
||||
showBadge={showInstanceBadge}
|
||||
// Glyph dims, badge stays saturated; offset matches the composer trigger.
|
||||
iconClassName="size-3.5 opacity-60"
|
||||
badgeClassName="right-[-0.1875rem] bottom-[-0.1875rem] h-3 min-w-3 px-0.5 text-[7px]"
|
||||
badgeClassName="right-[-0.1875rem] bottom-[-0.1875rem] h-3 min-w-3 px-0.5 text-3xs"
|
||||
/>
|
||||
</span>
|
||||
) : null}
|
||||
@@ -4912,7 +4912,7 @@ export default function Sidebar() {
|
||||
<button
|
||||
type="button"
|
||||
onClick={openAddProjectCommandPalette}
|
||||
className="inline-flex cursor-pointer items-center gap-1.5 rounded-md border border-sidebar-border px-2.5 py-1 text-[11px] font-medium text-sidebar-muted-foreground transition-colors hover:bg-sidebar-row-hover hover:text-sidebar-foreground"
|
||||
className="inline-flex cursor-pointer items-center gap-1.5 rounded-md border border-sidebar-border px-2.5 py-1 text-2xs font-medium text-sidebar-muted-foreground transition-colors hover:bg-sidebar-row-hover hover:text-sidebar-foreground"
|
||||
>
|
||||
<PlusIcon className="-mx-0.5 size-3" />
|
||||
Add project
|
||||
|
||||
@@ -22,7 +22,7 @@ function SlowRequestDetails({ requests }: { requests: ReadonlyArray<SlowRpcAckRe
|
||||
key={request.requestId}
|
||||
>
|
||||
<div className="wrap-break-word font-medium text-foreground">{request.tag}</div>
|
||||
<div className="mt-0.5 text-[10px] opacity-75">
|
||||
<div className="mt-0.5 text-3xs opacity-75">
|
||||
Started {new Date(request.startedAt).toLocaleTimeString()}
|
||||
</div>
|
||||
</li>
|
||||
|
||||
@@ -328,7 +328,7 @@ export function ThreadPullRequestsMiniList({
|
||||
{snapshot?.title ?? line.link.repository}
|
||||
</span>
|
||||
{line.stack ? (
|
||||
<span className="ml-auto shrink-0 pl-1 text-[10px]">
|
||||
<span className="ml-auto shrink-0 pl-1 text-3xs">
|
||||
{line.stack.kind === "native" ? "stack" : "chain"} · {line.stack.size}
|
||||
</span>
|
||||
) : null}
|
||||
@@ -463,7 +463,7 @@ export function ThreadStatusLabel({
|
||||
render={
|
||||
<span
|
||||
aria-label={status.label}
|
||||
className={`inline-flex items-center gap-1 text-[10px] ${status.colorClass}`}
|
||||
className={`inline-flex items-center gap-1 text-3xs ${status.colorClass}`}
|
||||
/>
|
||||
}
|
||||
>
|
||||
|
||||
@@ -981,7 +981,7 @@ export function TerminalViewport({
|
||||
<div
|
||||
ref={containerRef}
|
||||
tabIndex={-1}
|
||||
className="relative h-full w-full overflow-hidden bg-[var(--terminal-background)]"
|
||||
className="relative h-full w-full overflow-hidden bg-(--terminal-background)"
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -1490,7 +1490,7 @@ export default function ThreadTerminalDrawer({
|
||||
<div className="min-h-0 w-full flex-1">
|
||||
<div
|
||||
className={cn(
|
||||
"flex h-full min-h-0 bg-[var(--terminal-background)]",
|
||||
"flex h-full min-h-0 bg-(--terminal-background)",
|
||||
hasTerminalSidebar && "gap-1.5",
|
||||
)}
|
||||
>
|
||||
@@ -1653,7 +1653,7 @@ export default function ThreadTerminalDrawer({
|
||||
{showGroupHeaders && (
|
||||
<button
|
||||
type="button"
|
||||
className={`flex h-[22px] w-full cursor-pointer items-center gap-1 rounded px-1.5 text-[11px] ${
|
||||
className={`flex h-[22px] w-full cursor-pointer items-center gap-1 rounded px-1.5 text-2xs ${
|
||||
isGroupActive
|
||||
? "bg-accent/50 text-foreground"
|
||||
: "text-muted-foreground hover:bg-accent/40 hover:text-foreground"
|
||||
@@ -1662,7 +1662,7 @@ export default function ThreadTerminalDrawer({
|
||||
>
|
||||
<GroupIcon className="size-3 shrink-0" />
|
||||
<span className="min-w-0 flex-1 truncate text-left">{groupLabel}</span>
|
||||
<span className="text-muted-foreground/70 text-[10px] tabular-nums">
|
||||
<span className="text-muted-foreground/70 text-3xs tabular-nums">
|
||||
{terminalCount}
|
||||
</span>
|
||||
</button>
|
||||
|
||||
@@ -33,7 +33,7 @@ export function WorkspaceBreadcrumbText({ children, className, ...props }: Compo
|
||||
// Center the capital letters with adjacent icons, not the font's leading.
|
||||
// Padding preserves accents and descenders when a label is truncated.
|
||||
className={cn(
|
||||
"block min-w-0 truncate [text-box:trim-both_cap_alphabetic] supports-[text-box:trim-both_cap_alphabetic]:py-[0.5em]",
|
||||
"block min-w-0 truncate [text-box:trim-both_cap_alphabetic] supports-[text-box:trim-both_cap_alphabetic]:py-1.5",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
|
||||
@@ -16,9 +16,9 @@ export function WorkspacePageHeader({
|
||||
return (
|
||||
<header
|
||||
className={cn(
|
||||
"flex h-[var(--workspace-topbar-height)] min-h-[var(--workspace-topbar-height)] shrink-0 items-center gap-3 pl-[calc(env(safe-area-inset-left)+0.75rem)] pr-[calc(env(safe-area-inset-right)+0.75rem)] [[data-panel-animations=true]_&]:motion-safe:transition-[padding-left,padding-right] [[data-panel-animations=true]_&]:motion-safe:[transition-duration:var(--panel-animation-duration)] [[data-panel-animations=true]_&]:motion-safe:ease-out sm:pl-[calc(env(safe-area-inset-left)+1.25rem)] sm:pr-[calc(env(safe-area-inset-right)+1.25rem)]",
|
||||
"flex h-[var(--workspace-topbar-height)] min-h-[var(--workspace-topbar-height)] shrink-0 items-center gap-3 pl-(--workspace-gutter-start) pr-(--workspace-gutter-end) [[data-panel-animations=true]_&]:motion-safe:transition-[padding-left,padding-right] [[data-panel-animations=true]_&]:motion-safe:duration-(--panel-animation-duration) [[data-panel-animations=true]_&]:motion-safe:ease-out",
|
||||
electron && "drag-region",
|
||||
reserveNativeControls && "wco:pr-[var(--workspace-native-controls-inset)]",
|
||||
reserveNativeControls && "wco:pr-(--workspace-native-controls-inset)",
|
||||
COLLAPSED_SIDEBAR_TITLEBAR_INSET_CLASS,
|
||||
className,
|
||||
)}
|
||||
|
||||
@@ -27,7 +27,7 @@ export function AuthSurfaceShell({ children }: { readonly children: ReactNode })
|
||||
)}
|
||||
<div className="absolute inset-0 bg-[linear-gradient(to_bottom,transparent_20%,rgba(7,18,55,0.46)_100%)]" />
|
||||
<div className="relative h-full p-5 sm:p-6">
|
||||
<p className="text-[10px] font-semibold tracking-[0.2em] text-white/80 uppercase">
|
||||
<p className="text-3xs font-semibold tracking-widest text-white/80 uppercase">
|
||||
{APP_DISPLAY_NAME}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -110,7 +110,7 @@ export function AssistantCitationChip({
|
||||
const composerSourceLink = (
|
||||
<Link
|
||||
{...sourceLinkProps}
|
||||
className="inline-flex h-full min-w-0 items-center gap-[0.33em] rounded-sm text-inherit no-underline focus-visible:outline-2 focus-visible:outline-[var(--contrast-foreground)]"
|
||||
className="inline-flex h-full min-w-0 items-center gap-[0.33em] rounded-sm text-inherit no-underline focus-visible:outline-2 focus-visible:outline-foreground"
|
||||
aria-label={`View cited assistant text: ${label}`}
|
||||
>
|
||||
<QuoteIcon aria-hidden="true" />
|
||||
@@ -120,7 +120,7 @@ export function AssistantCitationChip({
|
||||
const chatSourceLink = (
|
||||
<Link
|
||||
{...sourceLinkProps}
|
||||
className="inline-flex h-full min-w-0 items-center gap-[0.33em] rounded-sm text-inherit no-underline hover:bg-[color-mix(in_oklab,var(--context-chip-accent)_17%,transparent)] focus-visible:outline-2 focus-visible:outline-[var(--contrast-foreground)]"
|
||||
className="inline-flex h-full min-w-0 items-center gap-[0.33em] rounded-sm text-inherit no-underline hover:bg-(--context-chip-accent)/17 focus-visible:outline-2 focus-visible:outline-foreground"
|
||||
aria-label={`View cited assistant text: ${label}`}
|
||||
>
|
||||
<QuoteIcon aria-hidden="true" />
|
||||
|
||||
@@ -54,7 +54,7 @@ export const ChangedFilesCard = memo(function ChangedFilesCard(props: {
|
||||
>
|
||||
<div
|
||||
data-changed-files-header=""
|
||||
className="sticky top-2 z-10 flex items-center justify-between gap-2 rounded-t-lg bg-secondary px-3 py-2 dark:bg-[color-mix(in_srgb,var(--input)_20%,var(--background))]"
|
||||
className="sticky top-2 z-10 flex items-center justify-between gap-2 rounded-t-lg bg-secondary px-3 py-2 dark:bg-background dark:bg-linear-to-b dark:from-input/20 dark:to-input/20"
|
||||
>
|
||||
<div className="flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1 text-xs font-medium text-foreground">
|
||||
<span>
|
||||
@@ -206,11 +206,11 @@ export const ChangedFilesTree = memo(function ChangedFilesTree(props: {
|
||||
) : (
|
||||
<FolderClosedIcon className="size-3.5 shrink-0 text-muted-foreground/75" />
|
||||
)}
|
||||
<span className="truncate font-mono text-[11px] text-muted-foreground/90 group-hover:text-foreground/90">
|
||||
<span className="truncate font-mono text-2xs text-muted-foreground/90 group-hover:text-foreground/90">
|
||||
{node.name}
|
||||
</span>
|
||||
{hasNonZeroStat(node.stat) && (
|
||||
<span className="ml-auto shrink-0 font-mono text-[10px] tabular-nums">
|
||||
<span className="ml-auto shrink-0 font-mono text-3xs tabular-nums">
|
||||
<DiffStatLabel additions={node.stat.additions} deletions={node.stat.deletions} />
|
||||
</span>
|
||||
)}
|
||||
@@ -251,7 +251,7 @@ export const ChangedFilesTree = memo(function ChangedFilesTree(props: {
|
||||
<MiddleTruncate value={node.name} />
|
||||
</span>
|
||||
{node.stat && (
|
||||
<span className="ml-auto shrink-0 font-mono text-[10px] tabular-nums">
|
||||
<span className="ml-auto shrink-0 font-mono text-3xs tabular-nums">
|
||||
<DiffStatLabel additions={node.stat.additions} deletions={node.stat.deletions} />
|
||||
</span>
|
||||
)}
|
||||
|
||||
@@ -381,7 +381,7 @@ function SnapShotAttachmentFrame({
|
||||
className={cn(
|
||||
animateArrival &&
|
||||
!animationId &&
|
||||
"origin-center transition-[opacity,scale] duration-300 ease-[cubic-bezier(.2,.8,.2,1)] starting:scale-95 starting:opacity-0 motion-reduce:transition-none motion-reduce:starting:scale-100 motion-reduce:starting:opacity-100",
|
||||
"origin-center transition-[opacity,scale] duration-300 ease-drawer starting:scale-95 starting:opacity-0 motion-reduce:transition-none motion-reduce:starting:scale-100 motion-reduce:starting:opacity-100",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
@@ -6365,7 +6365,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
|
||||
data-chat-composer-surface="true"
|
||||
data-chat-composer-mobile-collapsed={isComposerCollapsedMobile ? "true" : "false"}
|
||||
className={cn(
|
||||
"rounded-[20px] transition-[background-color] duration-200",
|
||||
"rounded-3xl transition-[background-color] duration-200",
|
||||
isDragOverComposer ? "bg-accent/45 ring-1 ring-primary/70" : null,
|
||||
projectSelectionRequired ? "opacity-75" : null,
|
||||
composerProviderState.composerSurfaceClassName,
|
||||
@@ -6377,7 +6377,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
|
||||
type="button"
|
||||
data-chat-composer-transition-prompt="true"
|
||||
className={cn(
|
||||
"min-w-0 flex-1 truncate bg-transparent p-0 text-left text-[14px] focus:outline-none",
|
||||
"min-w-0 flex-1 truncate bg-transparent p-0 text-left text-sm focus:outline-none",
|
||||
(activePendingProgress ? activePendingProgress.customAnswer : prompt.trim())
|
||||
? "text-foreground"
|
||||
: "text-placeholder",
|
||||
@@ -6477,7 +6477,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
|
||||
"mb-3 flex max-w-full gap-2",
|
||||
pendingSnapShotIds.length > 0 ||
|
||||
expandedComposerImages.some((image) => image.source?.kind === "snap-shot")
|
||||
? "snap-x snap-proximity overflow-x-auto overscroll-x-contain pb-1 [scrollbar-color:color-mix(in_srgb,var(--contrast-foreground)_18%,transparent)_transparent] [scrollbar-width:thin] [&::-webkit-scrollbar]:h-2.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:border-3 [&::-webkit-scrollbar-thumb]:border-transparent [&::-webkit-scrollbar-thumb]:bg-[color-mix(in_srgb,var(--contrast-foreground)_18%,transparent)] [&::-webkit-scrollbar-thumb]:bg-clip-content [&::-webkit-scrollbar-thumb:hover]:bg-[color-mix(in_srgb,var(--contrast-foreground)_28%,transparent)] [&::-webkit-scrollbar-track]:mx-1 [&::-webkit-scrollbar-track]:bg-transparent"
|
||||
? "snap-x snap-proximity overflow-x-auto overscroll-x-contain pb-1 scrollbar-thumb-foreground/18 scrollbar-track-transparent [scrollbar-width:thin] [&::-webkit-scrollbar]:h-2.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:border-3 [&::-webkit-scrollbar-thumb]:border-transparent [&::-webkit-scrollbar-thumb]:bg-foreground/18 [&::-webkit-scrollbar-thumb]:bg-clip-content [&::-webkit-scrollbar-thumb:hover]:bg-foreground/28 [&::-webkit-scrollbar-track]:mx-1 [&::-webkit-scrollbar-track]:bg-transparent"
|
||||
: "flex-wrap",
|
||||
)}
|
||||
>
|
||||
@@ -6532,14 +6532,14 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
|
||||
alt={image.name}
|
||||
className="h-full w-full object-cover"
|
||||
fallback={
|
||||
<span className="flex h-full items-center justify-center px-1 text-[10px] text-secondary-label">
|
||||
<span className="flex h-full items-center justify-center px-1 text-3xs text-secondary-label">
|
||||
{image.name}
|
||||
</span>
|
||||
}
|
||||
/>
|
||||
</button>
|
||||
) : (
|
||||
<div className="flex h-full w-full items-center justify-center px-1 text-center text-[10px] text-secondary-label">
|
||||
<div className="flex h-full w-full items-center justify-center px-1 text-center text-3xs text-secondary-label">
|
||||
{image.name}
|
||||
</div>
|
||||
)}
|
||||
@@ -6572,7 +6572,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
|
||||
</Tooltip>
|
||||
)}
|
||||
{upload?.status === "uploading" && (
|
||||
<span className="pointer-events-none absolute inset-x-0 bottom-0 bg-background/85 px-1 text-center text-[10px] text-foreground">
|
||||
<span className="pointer-events-none absolute inset-x-0 bottom-0 bg-background/85 px-1 text-center text-3xs text-foreground">
|
||||
{formatAttachmentUploadProgress(upload.progress)}
|
||||
</span>
|
||||
)}
|
||||
@@ -6671,7 +6671,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
|
||||
<PlayIcon className="relative z-10 size-4 fill-current drop-shadow-md" />
|
||||
</button>
|
||||
{upload?.status === "uploading" && (
|
||||
<span className="pointer-events-none absolute inset-x-0 bottom-0 bg-background/85 px-1 text-center text-[10px] text-foreground">
|
||||
<span className="pointer-events-none absolute inset-x-0 bottom-0 bg-background/85 px-1 text-center text-3xs text-foreground">
|
||||
{formatAttachmentUploadProgress(upload.progress)}
|
||||
</span>
|
||||
)}
|
||||
|
||||
@@ -494,8 +494,8 @@ export const ChatHeader = memo(function ChatHeader({
|
||||
"flex shrink-0 items-center justify-end gap-2 @3xl/header-actions:gap-3",
|
||||
// Reserve two panel toggles plus their 4px gaps and 1px edge inset.
|
||||
// The page header adds 8px more right padding at sm.
|
||||
rightPanelOpen ? "pr-0" : "pr-[calc(--spacing(18)+1px)] sm:pr-[calc(--spacing(14)+1px)]",
|
||||
"[[data-panel-animations=true]_&]:motion-safe:transition-[padding-right] [[data-panel-animations=true]_&]:motion-safe:[transition-duration:var(--panel-animation-duration)] [[data-panel-animations=true]_&]:motion-safe:ease-out",
|
||||
rightPanelOpen ? "pr-0" : "pr-18.25 sm:pr-14.25",
|
||||
"[[data-panel-animations=true]_&]:motion-safe:transition-[padding-right] [[data-panel-animations=true]_&]:motion-safe:duration-(--panel-animation-duration) [[data-panel-animations=true]_&]:motion-safe:ease-out",
|
||||
)}
|
||||
>
|
||||
<Menu open={actionsCollapsed && actionsOpen} onOpenChange={setActionsOpen}>
|
||||
|
||||
@@ -51,17 +51,17 @@ function Surface({
|
||||
surfaceColors,
|
||||
"relative isolate border-0 bg-transparent shadow-none [--chat-composer-attached-tint:transparent]",
|
||||
variantColors[variant],
|
||||
// The mask cut-off (1rem) bleeds one pixel past the seam (1rem + 1px): Chromium
|
||||
// drops the last device-pixel row of a filtered backdrop when the cut-off lands
|
||||
// off the device-pixel grid, and the composer's surface starts exactly there.
|
||||
// The composer's own glass covers the extra row, so the overlap never shows.
|
||||
placement === "attached"
|
||||
? "[--chat-composer-attachment-overlap:calc(1rem+1px)] before:rounded-t-[16px]"
|
||||
: "[--chat-composer-attachment-overlap:0px] before:rounded-[1rem]",
|
||||
? "[--chat-composer-attachment-overlap:calc(1rem+1px)] before:rounded-t-2xl before:mask-t-from-transparent before:mask-t-from-4 before:mask-t-to-black before:mask-t-to-4"
|
||||
: "[--chat-composer-attachment-overlap:0px] before:rounded-2xl",
|
||||
"before:pointer-events-none before:absolute before:inset-0 before:-z-1 before:border before:border-(--chat-composer-attached-outline)",
|
||||
"before:bg-[color-mix(in_srgb,var(--chat-composer-attached-surface)_var(--glass-opacity),transparent)] before:bg-[linear-gradient(var(--chat-composer-attached-tint),var(--chat-composer-attached-tint))] before:backdrop-blur-(--glass-blur) before:backdrop-saturate-(--glass-saturation)",
|
||||
// The mask cut-off bleeds one pixel past the seam: Chromium drops the last
|
||||
// device-pixel row of a filtered backdrop when the cut-off lands off the
|
||||
// device-pixel grid, and the composer's surface starts exactly there. The
|
||||
// composer's own glass covers the extra row, so the overlap never shows.
|
||||
"before:mask-[linear-gradient(to_top,transparent_0_calc(var(--chat-composer-attachment-overlap)-1px),black_calc(var(--chat-composer-attachment-overlap)-1px))] before:shadow-[0_12px_28px_-18px_rgb(0_0_0/40%)] dark:before:shadow-[0_14px_32px_-18px_rgb(0_0_0/75%)]",
|
||||
"dark:supports-[(backdrop-filter:blur(1px))_or_(-webkit-backdrop-filter:blur(1px))]:before:bg-[linear-gradient(var(--chat-composer-attached-tint),var(--chat-composer-attached-tint)),linear-gradient(to_top,transparent_0_var(--chat-composer-attachment-overlap),rgb(0_0_0/18%)_var(--chat-composer-attachment-overlap),transparent_calc(var(--chat-composer-attachment-overlap)+10px))]",
|
||||
"before:bg-(--chat-composer-attached-surface)/(--glass-opacity) before:bg-linear-to-b before:from-(--chat-composer-attached-tint) before:to-(--chat-composer-attached-tint) before:backdrop-blur-(--glass-blur) before:backdrop-saturate-(--glass-saturation)",
|
||||
"before:shadow-composer dark:before:shadow-composer-dark",
|
||||
"dark:supports-[(backdrop-filter:blur(1px))_or_(-webkit-backdrop-filter:blur(1px))]:before:bg-composer-seam-above",
|
||||
"not-supports-[((backdrop-filter:blur(1px))_or_(-webkit-backdrop-filter:blur(1px)))]:before:bg-(--chat-composer-attached-surface)",
|
||||
className,
|
||||
)}
|
||||
@@ -91,8 +91,8 @@ function Peek({
|
||||
className={cn(
|
||||
surfaceColors,
|
||||
neutralOutline,
|
||||
"absolute inset-x-0 bottom-0 z-0 mx-auto h-3 w-[96%] cursor-pointer rounded-t-2xl border border-b-0 shadow-[0_6px_18px_rgb(0_0_0/6%)]",
|
||||
"bg-[color-mix(in_srgb,var(--chat-composer-attached-surface)_var(--glass-opacity),transparent)] backdrop-blur-(--glass-blur) backdrop-saturate-(--glass-saturation)",
|
||||
"absolute inset-x-0 bottom-0 z-0 mx-auto h-3 w-[96%] cursor-pointer rounded-t-2xl border border-b-0 shadow-md",
|
||||
"bg-(--chat-composer-attached-surface)/(--glass-opacity) backdrop-blur-(--glass-blur) backdrop-saturate-(--glass-saturation)",
|
||||
"not-supports-[((backdrop-filter:blur(1px))_or_(-webkit-backdrop-filter:blur(1px)))]:bg-(--chat-composer-attached-surface)",
|
||||
"transition-opacity duration-150 ease-out focus-visible:outline-2 focus-visible:outline-ring",
|
||||
peekBorder[variant],
|
||||
@@ -161,7 +161,7 @@ function Root({
|
||||
return (
|
||||
<Surface
|
||||
className={cn(
|
||||
"min-w-0 px-1 pt-(--composer-banner-padding-block) pb-[calc(var(--chat-composer-attachment-overlap)+var(--composer-banner-padding-block))] text-xs/4 [--composer-banner-icon-column:--spacing(7)] [--composer-banner-padding-block:--spacing(1)] sm:[--composer-banner-icon-column:--spacing(6)]",
|
||||
"min-w-0 px-1 py-(--composer-banner-padding-block) after:block after:h-(--chat-composer-attachment-overlap) text-xs/4 [--composer-banner-icon-column:--spacing(7)] [--composer-banner-padding-block:--spacing(1)] sm:[--composer-banner-icon-column:--spacing(6)]",
|
||||
density === "comfortable" && "[--composer-banner-padding-block:--spacing(1.25)]",
|
||||
density === "spacious" && "px-3 [--composer-banner-padding-block:--spacing(3)]",
|
||||
width === "content" ? "w-fit max-w-full flex-none" : "@container",
|
||||
@@ -189,7 +189,7 @@ function Row({
|
||||
className: cn(
|
||||
"group/banner-row grid min-h-(--composer-banner-icon-column) w-full min-w-0 grid-cols-[var(--composer-banner-icon-column)_minmax(0,1fr)_auto] items-center gap-x-1 text-start",
|
||||
"not-has-[>[data-slot=composer-banner-actions]]:grid-cols-[var(--composer-banner-icon-column)_minmax(0,1fr)]",
|
||||
"[&:is(button)]:cursor-pointer [&:is(button)]:rounded-[0.5rem] [&:is(button)]:focus-visible:outline-2 [&:is(button)]:focus-visible:-outline-offset-2 [&:is(button)]:focus-visible:outline-ring",
|
||||
"[&:is(button)]:cursor-pointer [&:is(button)]:rounded-md [&:is(button)]:focus-visible:outline-2 [&:is(button)]:focus-visible:-outline-offset-2 [&:is(button)]:focus-visible:outline-ring",
|
||||
layout === "wrap-actions" &&
|
||||
"@max-[400px]:*:data-[slot=composer-banner-content]:min-h-(--composer-banner-icon-column)",
|
||||
layout === "wrap-actions-narrow" &&
|
||||
@@ -306,15 +306,7 @@ function Count({ className, ...props }: ComponentProps<"span">) {
|
||||
}
|
||||
|
||||
function Body({ className, ...props }: ComponentProps<"div">) {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"min-w-0 ps-[calc(var(--composer-banner-icon-column)+(--spacing(1)))]",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
return <div className={cn("min-w-0 ps-8 sm:ps-7", className)} {...props} />;
|
||||
}
|
||||
|
||||
function Dot({ className, ...props }: ComponentProps<"span">) {
|
||||
|
||||
@@ -123,7 +123,7 @@ export function ComposerBannerStack({ className, items }: ComposerBannerStackPro
|
||||
<div
|
||||
key={frontItem.id}
|
||||
className={cn(
|
||||
"relative z-10 transition-[translate,opacity] duration-220 ease-in",
|
||||
"relative z-10 transition-[opacity,translate] duration-220 ease-in",
|
||||
exitingItemId === frontItem.id
|
||||
? "pointer-events-none translate-y-16 opacity-0"
|
||||
: "opacity-100",
|
||||
@@ -218,7 +218,7 @@ export function ComposerBannerStack({ className, items }: ComposerBannerStackPro
|
||||
<div
|
||||
key={item.id}
|
||||
className={cn(
|
||||
"transition-[translate,opacity] duration-220 ease-in",
|
||||
"transition-[opacity,translate] duration-220 ease-in",
|
||||
exitingItemId === item.id
|
||||
? "pointer-events-none translate-y-28 opacity-0"
|
||||
: "opacity-100",
|
||||
|
||||
@@ -16,10 +16,10 @@ export type ComposerControlSize = "sm" | "xs";
|
||||
*/
|
||||
function composerControlClassName(size: ComposerControlSize, className?: string) {
|
||||
return cn(
|
||||
"relative inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-[var(--control-radius)] border border-transparent text-base outline-none hover:bg-accent data-pressed:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-disabled:pointer-events-none data-disabled:opacity-64 pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 [&:active:not([aria-haspopup])]:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:-mx-0.5 [&_svg[data-composer-control-icon]]:mx-0 [&_svg:not([class*='text-'])]:text-[var(--control-icon-color)]",
|
||||
"relative inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--control-radius) border border-transparent text-base outline-none hover:bg-accent data-pressed:bg-accent focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-64 data-disabled:pointer-events-none data-disabled:opacity-64 pointer-coarse:after:absolute pointer-coarse:after:size-full pointer-coarse:after:min-h-11 pointer-coarse:after:min-w-11 [&:active:not([aria-haspopup])]:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:-mx-0.5 [&_svg[data-composer-control-icon]]:mx-0",
|
||||
size === "xs"
|
||||
? "h-7 gap-1 px-[calc(--spacing(2)-1px)] font-normal text-muted-foreground/70 text-sm [--control-icon-color:currentColor] hover:text-foreground/80 sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5 [&_svg[data-composer-control-chevron]]:ms-0 [&_svg[data-composer-control-chevron]]:-me-1"
|
||||
: "h-7 gap-1.5 px-2.5 font-medium text-secondary-label [--control-icon-color:var(--contrast-muted-foreground)] hover:text-foreground sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4",
|
||||
? "h-7 gap-1 px-1.75 font-normal text-muted-foreground/70 text-sm hover:text-foreground/80 sm:h-6 sm:text-xs [&_svg:not([class*='size-'])]:size-4 sm:[&_svg:not([class*='size-'])]:size-3.5 [&_svg[data-composer-control-chevron]]:ms-0 [&_svg[data-composer-control-chevron]]:-me-1"
|
||||
: "h-7 gap-1.5 px-2.5 font-medium text-secondary-label [&_svg:not([class*='text-'])]:text-muted-foreground hover:text-foreground sm:text-sm [&_svg:not([class*='size-'])]:size-4.5 sm:[&_svg:not([class*='size-'])]:size-4",
|
||||
"aria-pressed:bg-accent aria-pressed:text-accent-foreground aria-pressed:hover:bg-accent/80",
|
||||
className,
|
||||
);
|
||||
|
||||
@@ -41,7 +41,7 @@ export const ComposerPendingApprovalPanel = memo(function ComposerPendingApprova
|
||||
className={cn("flex min-w-0 flex-1 flex-col items-start gap-1", className)}
|
||||
role="group"
|
||||
>
|
||||
<span className="flex w-full min-w-0 items-center gap-2 text-[11px] text-muted-foreground">
|
||||
<span className="flex w-full min-w-0 items-center gap-2 text-2xs text-muted-foreground">
|
||||
<span className="shrink-0 font-medium text-warning">{fallbackLabel}</span>
|
||||
{approval.appName ? <span className="min-w-0 truncate">{approval.appName}</span> : null}
|
||||
{pendingCount > 1 ? (
|
||||
|
||||
@@ -198,7 +198,7 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard(
|
||||
</ComposerBanner.Content>
|
||||
<ComposerBanner.Actions>
|
||||
{prompt.questions.length > 1 ? (
|
||||
<span className="text-[10px] font-medium text-muted-foreground tabular-nums">
|
||||
<span className="text-3xs font-medium text-muted-foreground tabular-nums">
|
||||
{questionIndex + 1}/{prompt.questions.length}
|
||||
</span>
|
||||
) : null}
|
||||
@@ -257,9 +257,7 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard(
|
||||
<div className="min-w-0 flex-1 flex flex-col gap-0.5">
|
||||
<span className="text-sm font-medium">{option.label}</span>
|
||||
{option.description && option.description !== option.label ? (
|
||||
<span className="text-secondary-label text-[11px]">
|
||||
{option.description}
|
||||
</span>
|
||||
<span className="text-secondary-label text-2xs">{option.description}</span>
|
||||
) : null}
|
||||
</div>
|
||||
{isSelected ? (
|
||||
@@ -267,7 +265,7 @@ const ComposerPendingUserInputCard = memo(function ComposerPendingUserInputCard(
|
||||
) : shortcutKey !== null ? (
|
||||
<kbd
|
||||
className={cn(
|
||||
"flex size-5 shrink-0 items-center justify-center text-[10px] font-medium text-muted-foreground tabular-nums",
|
||||
"flex size-5 shrink-0 items-center justify-center text-3xs font-medium text-muted-foreground tabular-nums",
|
||||
)}
|
||||
>
|
||||
{shortcutKey}
|
||||
|
||||
@@ -91,7 +91,7 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({
|
||||
<button
|
||||
type="button"
|
||||
className={cn(
|
||||
"flex cursor-pointer items-center justify-center rounded-full bg-destructive/90 text-white shadow-xs shadow-destructive/24 inset-shadow-[0_1px_--theme(--color-white/16%)] transition-all duration-150 hover:bg-destructive hover:scale-105 active:inset-shadow-[0_1px_--theme(--color-black/8%)] active:shadow-none",
|
||||
"flex cursor-pointer items-center justify-center rounded-full bg-destructive/90 text-white shadow-xs shadow-destructive/24 inset-shadow-2xs inset-shadow-white/16 transition-all duration-150 hover:bg-destructive hover:scale-105 active:inset-shadow-black/8 active:shadow-none",
|
||||
insidePendingAction
|
||||
? "size-8 sm:size-7"
|
||||
: hasSendableContent
|
||||
@@ -215,7 +215,7 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({
|
||||
<button
|
||||
type="submit"
|
||||
className={cn(
|
||||
"relative isolate flex h-9 w-9 items-center justify-center overflow-hidden rounded-full shadow-xs transition-all duration-150 enabled:cursor-pointer enabled:inset-shadow-[0_1px_--theme(--color-white/16%)] hover:scale-105 active:inset-shadow-[0_1px_--theme(--color-black/8%)] active:shadow-none disabled:pointer-events-none disabled:opacity-30 disabled:shadow-none disabled:hover:scale-100 sm:h-8 sm:w-8",
|
||||
"relative isolate flex h-9 w-9 items-center justify-center overflow-hidden rounded-full shadow-xs transition-all duration-150 enabled:cursor-pointer enabled:inset-shadow-2xs enabled:inset-shadow-white/16 hover:scale-105 active:inset-shadow-black/8 active:shadow-none disabled:pointer-events-none disabled:opacity-30 disabled:shadow-none disabled:hover:scale-100 sm:h-8 sm:w-8",
|
||||
stageBackdropVariant
|
||||
? "bg-transparent text-white enabled:shadow-black/24 enabled:hover:brightness-110"
|
||||
: "bg-message-action text-message-action-foreground enabled:shadow-message-action/24 hover:bg-message-action-hover",
|
||||
|
||||
@@ -25,7 +25,7 @@ export const ComposerStashBadge = memo(function ComposerStashBadge(props: {
|
||||
key={props.pulseKey}
|
||||
className={cn(
|
||||
props.pulsing
|
||||
? "animate-[prompt-stash-count-enter_180ms_ease-out_both] text-primary motion-reduce:animate-none"
|
||||
? "text-primary transition-[opacity,translate] duration-180 ease-out starting:translate-y-0.5 starting:opacity-0 motion-reduce:transition-none"
|
||||
: "text-muted-foreground",
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -19,7 +19,7 @@ function Shell({
|
||||
"[html[data-theme-id]_&]:[--chat-composer-glass-surface:var(--app-theme-surface-raised)] [html[data-theme-id]_&]:[--chat-composer-outline:var(--app-theme-toolbar-border)]",
|
||||
"dark:[html[data-theme-id]:not([data-theme-id=t3-chat])_&]:[--chat-composer-highlight:color-mix(in_srgb,var(--app-theme-input)_12%,transparent)] dark:[html[data-theme-id]:not([data-theme-id=t3-chat])_&]:[--chat-composer-outline:color-mix(in_srgb,var(--app-theme-input)_30%,var(--background))]",
|
||||
"dark:[html[data-theme-id=t3-chat]_&]:[--chat-composer-highlight:color-mix(in_srgb,#432d48_12%,transparent)] dark:[html[data-theme-id=t3-chat]_&]:[--chat-composer-outline:#241e28]",
|
||||
"before:pointer-events-none before:absolute before:inset-0 before:z-0 before:rounded-[22px] before:bg-[color-mix(in_srgb,var(--chat-composer-glass-surface)_var(--glass-opacity),transparent)] before:backdrop-blur-(--glass-blur) before:backdrop-saturate-(--glass-saturation)",
|
||||
"before:pointer-events-none before:absolute before:inset-0 before:z-0 before:rounded-3xl before:bg-(--chat-composer-glass-surface)/(--glass-opacity) before:backdrop-blur-(--glass-blur) before:backdrop-saturate-(--glass-saturation)",
|
||||
"not-supports-[((backdrop-filter:blur(1px))_or_(-webkit-backdrop-filter:blur(1px)))]:before:bg-(--chat-composer-glass-surface)",
|
||||
"has-data-[composer-banner-surface=attached]:before:hidden",
|
||||
contextStrip && [
|
||||
@@ -37,7 +37,7 @@ function Shell({
|
||||
}
|
||||
|
||||
const outlineClasses =
|
||||
"after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:border after:border-(--chat-composer-outline) dark:after:shadow-[inset_0_1px_var(--chat-composer-highlight)]";
|
||||
"after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:border after:border-(--chat-composer-outline) dark:after:inset-shadow-2xs dark:after:inset-shadow-(color:--chat-composer-highlight)";
|
||||
|
||||
// The bottom strip continues the outline, so leave the seam between its corners open.
|
||||
const contextSeamClasses =
|
||||
@@ -48,7 +48,7 @@ function Host({ className, ...props }: ComponentProps<"div">) {
|
||||
<div
|
||||
data-slot="composer-host"
|
||||
className={cn(
|
||||
"relative z-10 w-full rounded-[22px] shadow-[0_12px_28px_-18px_rgb(0_0_0/40%)] after:z-1 dark:shadow-none",
|
||||
"relative z-10 w-full rounded-3xl shadow-composer after:z-1 dark:shadow-none",
|
||||
outlineClasses,
|
||||
contextSeamClasses,
|
||||
"group-has-data-[composer-banner-surface=attached]/composer-surface:shadow-none group-has-data-[composer-banner-surface=attached]/composer-surface:after:hidden",
|
||||
@@ -64,12 +64,12 @@ function Main({ className, ...props }: ComponentProps<"div">) {
|
||||
<div
|
||||
data-chat-composer-main-surface="true"
|
||||
className={cn(
|
||||
"group relative z-10 rounded-[22px] p-px transition-colors duration-200",
|
||||
"group relative z-10 rounded-3xl p-px transition-colors duration-200",
|
||||
outlineClasses,
|
||||
contextSeamClasses,
|
||||
"after:z-20 after:hidden group-has-data-[composer-banner-surface=attached]/composer-surface:after:block",
|
||||
"group-has-data-[composer-banner-surface=attached]/composer-surface:bg-[color-mix(in_srgb,var(--chat-composer-glass-surface)_var(--glass-opacity),transparent)] group-has-data-[composer-banner-surface=attached]/composer-surface:backdrop-blur-(--glass-blur) group-has-data-[composer-banner-surface=attached]/composer-surface:backdrop-saturate-(--glass-saturation)",
|
||||
"group-has-data-[composer-banner-surface=attached]/composer-surface:shadow-[0_12px_28px_-18px_rgb(0_0_0/40%)] dark:group-has-data-[composer-banner-surface=attached]/composer-surface:shadow-none",
|
||||
"group-has-data-[composer-banner-surface=attached]/composer-surface:bg-(--chat-composer-glass-surface)/(--glass-opacity) group-has-data-[composer-banner-surface=attached]/composer-surface:backdrop-blur-(--glass-blur) group-has-data-[composer-banner-surface=attached]/composer-surface:backdrop-saturate-(--glass-saturation)",
|
||||
"group-has-data-[composer-banner-surface=attached]/composer-surface:shadow-composer dark:group-has-data-[composer-banner-surface=attached]/composer-surface:shadow-none",
|
||||
"not-supports-[((backdrop-filter:blur(1px))_or_(-webkit-backdrop-filter:blur(1px)))]:group-has-data-[composer-banner-surface=attached]/composer-surface:bg-(--chat-composer-glass-surface)",
|
||||
"group-has-data-[composer-banner-surface=attached]/composer-surface:**:data-[chat-composer-mobile-collapsed=true]:min-h-[calc(1rem+1px)]",
|
||||
className,
|
||||
@@ -85,10 +85,10 @@ function ContextStrip({ className, ...props }: ComponentProps<"div">) {
|
||||
data-slot="composer-context-strip"
|
||||
className={cn(
|
||||
"group/composer-context relative isolate mx-auto -mt-4 flex w-[calc(100%-2*var(--chat-composer-drawer-inset))] items-center gap-2 overflow-x-clip overflow-y-visible ps-1 pe-2 pt-5 pb-1",
|
||||
"before:absolute before:inset-0 before:-z-1 before:rounded-b-[16px] before:border before:border-(--chat-composer-outline) before:mask-[linear-gradient(to_bottom,transparent_0_1rem,black_1rem)] before:shadow-[0_12px_28px_-18px_rgb(0_0_0/40%)]",
|
||||
"dark:before:border-white/7 dark:before:bg-[linear-gradient(to_bottom,transparent_0_1rem,rgb(0_0_0/18%)_1rem,transparent_calc(1rem+10px)),linear-gradient(rgb(255_255_255/1%),rgb(255_255_255/1%))] dark:before:shadow-[0_14px_32px_-18px_rgb(0_0_0/75%)]",
|
||||
"group-has-data-[composer-banner-surface=attached]/composer-surface:before:bg-[color-mix(in_srgb,var(--chat-composer-glass-surface)_var(--glass-opacity),transparent)] group-has-data-[composer-banner-surface=attached]/composer-surface:before:backdrop-blur-(--glass-blur) group-has-data-[composer-banner-surface=attached]/composer-surface:before:backdrop-saturate-(--glass-saturation)",
|
||||
"not-supports-[clip-path:shape(from_0_0,line_to_1px_1px)]:before:bg-[color-mix(in_srgb,var(--chat-composer-glass-surface)_var(--glass-opacity),transparent)] not-supports-[clip-path:shape(from_0_0,line_to_1px_1px)]:before:backdrop-blur-(--glass-blur) not-supports-[clip-path:shape(from_0_0,line_to_1px_1px)]:before:backdrop-saturate-(--glass-saturation)",
|
||||
"before:absolute before:inset-0 before:-z-1 before:rounded-b-2xl before:border before:border-(--chat-composer-outline) before:mask-b-from-transparent before:mask-b-from-4 before:mask-b-to-black before:mask-b-to-4 before:shadow-composer",
|
||||
"dark:before:border-white/7 dark:before:bg-composer-seam-below dark:before:shadow-composer-dark",
|
||||
"group-has-data-[composer-banner-surface=attached]/composer-surface:before:bg-(--chat-composer-glass-surface)/(--glass-opacity) group-has-data-[composer-banner-surface=attached]/composer-surface:before:backdrop-blur-(--glass-blur) group-has-data-[composer-banner-surface=attached]/composer-surface:before:backdrop-saturate-(--glass-saturation)",
|
||||
"not-supports-[clip-path:shape(from_0_0,line_to_1px_1px)]:before:bg-(--chat-composer-glass-surface)/(--glass-opacity) not-supports-[clip-path:shape(from_0_0,line_to_1px_1px)]:before:backdrop-blur-(--glass-blur) not-supports-[clip-path:shape(from_0_0,line_to_1px_1px)]:before:backdrop-saturate-(--glass-saturation)",
|
||||
className,
|
||||
)}
|
||||
{...props}
|
||||
|
||||
@@ -200,7 +200,7 @@ export const ComposerTasksContent = memo(function ComposerTasksContent({
|
||||
</ComposerBanner.Content>
|
||||
<ComposerBanner.Actions>
|
||||
<span
|
||||
className="w-12 text-right text-[10px]/4 text-muted-foreground/45 tabular-nums"
|
||||
className="w-12 text-right text-3xs/4 text-muted-foreground/45 tabular-nums"
|
||||
data-composer-task-duration="true"
|
||||
>
|
||||
{step.durationMs !== undefined
|
||||
|
||||
@@ -92,11 +92,11 @@ export function ContextWindowMeter(props: {
|
||||
width="sm"
|
||||
className="text-left whitespace-normal"
|
||||
>
|
||||
<div className="flex flex-col gap-2 p-[var(--floating-content-inset)]">
|
||||
<div className="flex flex-col gap-2 p-(--floating-content-inset)">
|
||||
<div className="flex items-center justify-between gap-3">
|
||||
<div className="font-medium text-muted-foreground text-xs">Context Window</div>
|
||||
{usage.maxTokens !== null && usedPercentage ? (
|
||||
<div className="text-secondary-label text-[11px] tabular-nums">
|
||||
<div className="text-secondary-label text-2xs tabular-nums">
|
||||
<span>{usedPercentage}</span>
|
||||
<span className="mx-1">·</span>
|
||||
<span>
|
||||
@@ -105,7 +105,7 @@ export function ContextWindowMeter(props: {
|
||||
</span>
|
||||
</div>
|
||||
) : (
|
||||
<div className="text-secondary-label text-[11px] tabular-nums">
|
||||
<div className="text-secondary-label text-2xs tabular-nums">
|
||||
{formatContextWindowTokens(usage.usedTokens)}
|
||||
</div>
|
||||
)}
|
||||
@@ -126,7 +126,7 @@ export function ContextWindowMeter(props: {
|
||||
</div>
|
||||
) : null}
|
||||
{showTotalProcessed ? (
|
||||
<div className="flex items-center justify-between gap-3 text-[11px] leading-4">
|
||||
<div className="flex items-center justify-between gap-3 text-2xs leading-4">
|
||||
<span className="text-secondary-label">Total processed</span>
|
||||
<span className="font-medium tabular-nums text-secondary-label">
|
||||
{formatContextWindowTokens(totalProcessedTokens)}
|
||||
@@ -134,7 +134,7 @@ export function ContextWindowMeter(props: {
|
||||
</div>
|
||||
) : null}
|
||||
{usage.compactsAutomatically ? (
|
||||
<div className="mt-1 text-pretty text-secondary-label text-[11px] font-medium">
|
||||
<div className="mt-1 text-pretty text-secondary-label text-2xs font-medium">
|
||||
{formatContextWindowCompactionMessage(modelDisplayName, usage.autoCompactThreshold)}
|
||||
</div>
|
||||
) : null}
|
||||
@@ -151,7 +151,7 @@ export function ContextWindowMeter(props: {
|
||||
Compact context
|
||||
</Button>
|
||||
{compactDisabled && compactDisabledReason ? (
|
||||
<div className="text-pretty text-secondary-label text-[11px]">
|
||||
<div className="text-pretty text-secondary-label text-2xs">
|
||||
{compactDisabledReason}
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
@@ -219,7 +219,7 @@ export const ExpandedImageDialog = memo(function ExpandedImageDialog({
|
||||
accessibilityDetails ? (
|
||||
<SnapShotAccessibilityData
|
||||
details={accessibilityDetails}
|
||||
className="h-[min(var(--media-height),40rem)] w-[min(var(--media-width),42rem)] animate-[snap-shot-contents-enter_140ms_ease-out] rounded-lg border border-border/70 bg-background p-4 text-xs leading-5 shadow-2xl motion-reduce:animate-none"
|
||||
className="h-[min(var(--media-height),40rem)] w-[min(var(--media-width),42rem)] transition-opacity duration-140 ease-out starting:opacity-0 rounded-lg border border-border/70 bg-background p-4 text-xs leading-5 shadow-2xl motion-reduce:transition-none"
|
||||
/>
|
||||
) : null
|
||||
) : item.src === null || failedImageSrc === item.src ? (
|
||||
|
||||
@@ -344,7 +344,7 @@ function TimelineLoadEarlierHeader({
|
||||
fade: boolean;
|
||||
}) {
|
||||
return (
|
||||
<div className={fade ? "pt-[var(--workspace-titlebar-scroll-fade-height)]" : "pt-3 sm:pt-4"}>
|
||||
<div className={fade ? "pt-(--workspace-titlebar-scroll-fade-height)" : "pt-3 sm:pt-4"}>
|
||||
<div className="mx-auto w-full max-w-3xl pb-2">
|
||||
<button
|
||||
type="button"
|
||||
@@ -1539,7 +1539,7 @@ function TimelineMinimap({
|
||||
<span
|
||||
aria-hidden="true"
|
||||
className={cn(
|
||||
"pointer-events-none absolute left-0 h-0.5 -translate-y-1/2 rounded-full bg-muted-foreground/35 transition-[background-color,width] duration-150 data-[in-view=true]:bg-foreground/90",
|
||||
"pointer-events-none absolute left-0 h-0.5 -translate-y-1/2 rounded-full bg-muted-foreground/35 transition-[width,background-color] duration-150 data-[in-view=true]:bg-foreground/90",
|
||||
activeDistance === 0
|
||||
? "w-6 bg-muted-foreground/75"
|
||||
: activeDistance === 1
|
||||
@@ -1885,7 +1885,7 @@ function UserVideoAttachment({ file }: { readonly file: ChatFileAttachment }) {
|
||||
|
||||
if (asset === null && src === null) {
|
||||
return (
|
||||
<div className="flex aspect-[4/3] w-full items-center justify-center rounded-lg border border-border/80 bg-black px-2 py-3 text-center text-[11px] text-white/70">
|
||||
<div className="flex aspect-[4/3] w-full items-center justify-center rounded-lg border border-border/80 bg-black px-2 py-3 text-center text-2xs text-white/70">
|
||||
{file.name}
|
||||
</div>
|
||||
);
|
||||
@@ -2112,7 +2112,7 @@ function UserTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "message"
|
||||
/>
|
||||
</button>
|
||||
) : (
|
||||
<div className="flex min-h-[72px] items-center justify-center px-2 py-3 text-center text-secondary-label text-[11px]">
|
||||
<div className="flex min-h-[72px] items-center justify-center px-2 py-3 text-center text-secondary-label text-2xs">
|
||||
{image.name}
|
||||
</div>
|
||||
)}
|
||||
@@ -2756,7 +2756,7 @@ function ReasoningTraceBlock({
|
||||
className="flex min-h-6 cursor-pointer select-none items-center gap-1.5 rounded-md px-0.5 text-start text-sm leading-relaxed transition-colors hover:bg-accent/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70"
|
||||
>
|
||||
<span className="flex size-6 shrink-0 items-center justify-center text-icon-muted">
|
||||
<BrainIcon aria-hidden className="block size-4 shrink-0 stroke-[1.8] opacity-70" />
|
||||
<BrainIcon aria-hidden className="block size-4 shrink-0 stroke-2 opacity-70" />
|
||||
</span>
|
||||
<span
|
||||
ref={streaming ? observeVisibleAnimation : undefined}
|
||||
@@ -2829,7 +2829,7 @@ const ReasoningTimelineRow = memo(function ReasoningTimelineRow({
|
||||
className="flex cursor-pointer select-none items-center gap-1.5 rounded-md px-0.5 py-0.5 text-start transition-colors hover:bg-accent/20 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/70"
|
||||
>
|
||||
<span className="flex size-6 shrink-0 items-center justify-center text-icon-muted">
|
||||
<BrainIcon aria-hidden className="block size-4 shrink-0 stroke-[1.8] opacity-70" />
|
||||
<BrainIcon aria-hidden className="block size-4 shrink-0 stroke-2 opacity-70" />
|
||||
</span>
|
||||
<span className="flex min-w-0 flex-1 items-center gap-1.5">
|
||||
<span className="relative min-w-0 flex-1 truncate text-secondary-label text-sm leading-relaxed">
|
||||
@@ -3208,7 +3208,7 @@ function LiveActivityContent({
|
||||
<ToolActivityIconView
|
||||
icon={toolIcon}
|
||||
fallbackName={iconName}
|
||||
className="block size-4 shrink-0 stroke-[1.8]"
|
||||
className="block size-4 shrink-0 stroke-2"
|
||||
muted={!highlighted}
|
||||
/>
|
||||
</span>
|
||||
@@ -3329,7 +3329,7 @@ function WorkGroupToggleTimelineRow({
|
||||
fallbackName={
|
||||
row.summaryToolIcon ?? row.toolSurface ?? toolGroupSummaryIconName(row.summaryKind)
|
||||
}
|
||||
className="size-4 shrink-0 stroke-[1.8]"
|
||||
className="size-4 shrink-0 stroke-2"
|
||||
muted
|
||||
/>
|
||||
</span>
|
||||
@@ -3545,7 +3545,7 @@ function UserMessagePreviewAnnotationDetails(props: {
|
||||
{props.record.comment}
|
||||
</div>
|
||||
) : null}
|
||||
<div className="mt-1 flex items-center gap-2 text-secondary-label text-[10px]">
|
||||
<div className="mt-1 flex items-center gap-2 text-secondary-label text-3xs">
|
||||
{props.record.targetSummary ? (
|
||||
<span className="truncate">{props.record.targetSummary}</span>
|
||||
) : null}
|
||||
@@ -3577,7 +3577,7 @@ function UserMessagePreviewAnnotationDetails(props: {
|
||||
) : null}
|
||||
</div>
|
||||
{element.htmlPreview?.trim() ? (
|
||||
<pre className="mt-1 max-h-24 overflow-auto whitespace-pre-wrap rounded bg-muted/60 px-2 py-1.5 text-[10px] leading-relaxed">
|
||||
<pre className="mt-1 max-h-24 overflow-auto whitespace-pre-wrap rounded bg-muted/60 px-2 py-1.5 text-3xs leading-relaxed">
|
||||
{element.htmlPreview.trim()}
|
||||
</pre>
|
||||
) : null}
|
||||
@@ -3585,7 +3585,7 @@ function UserMessagePreviewAnnotationDetails(props: {
|
||||
);
|
||||
})}
|
||||
{(props.record.elements?.length ?? 0) > visibleElements.length ? (
|
||||
<div className="text-secondary-label text-[10px]">
|
||||
<div className="text-secondary-label text-3xs">
|
||||
{(props.record.elements?.length ?? 0) - visibleElements.length} more selected
|
||||
elements
|
||||
</div>
|
||||
@@ -3611,7 +3611,7 @@ function UserMessageElementDetails({
|
||||
<div className="truncate text-message-foreground text-xs font-medium">
|
||||
{record.pageTitle?.trim() || record.pageUrl}
|
||||
</div>
|
||||
<div className="mt-0.5 truncate text-secondary-label text-[10px]">{record.pageUrl}</div>
|
||||
<div className="mt-0.5 truncate text-secondary-label text-3xs">{record.pageUrl}</div>
|
||||
</div>
|
||||
<div className="space-y-2 px-3 py-2.5">
|
||||
<div className="flex min-w-0 items-center gap-2 text-xs">
|
||||
@@ -4013,7 +4013,7 @@ function UserMessageReviewCommentCard({ comment }: { comment: ReviewCommentConte
|
||||
<div className="text-message-foreground text-xs font-medium">
|
||||
{formatWorkspaceRelativePath(comment.filePath, ctx.workspaceRoot)}
|
||||
</div>
|
||||
<div className="text-secondary-label text-[11px]">
|
||||
<div className="text-secondary-label text-2xs">
|
||||
{comment.sectionTitle} · {comment.rangeLabel}
|
||||
</div>
|
||||
</div>
|
||||
@@ -4153,7 +4153,7 @@ function ToolActivityIconView(props: {
|
||||
muted: boolean;
|
||||
}) {
|
||||
const { resolvedTheme } = use(TimelineRowCtx);
|
||||
const fallbackClassName = cn(props.className, props.muted && "opacity-70 light:brightness-[.6]");
|
||||
const fallbackClassName = cn(props.className, props.muted && "opacity-70 light:brightness-60");
|
||||
if (!props.icon) {
|
||||
return <WorkEntryIcon name={props.fallbackName} className={fallbackClassName} />;
|
||||
}
|
||||
@@ -4213,7 +4213,7 @@ function NativeAppToolActivityIcon(props: {
|
||||
return (
|
||||
<WorkEntryIcon
|
||||
name={props.fallbackName}
|
||||
className={cn(props.className, props.muted && "opacity-70 light:brightness-[.6]")}
|
||||
className={cn(props.className, props.muted && "opacity-70 light:brightness-60")}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -4258,14 +4258,14 @@ function ToolActivityImageIcon(props: {
|
||||
{displayedSrc === null ? (
|
||||
<WorkEntryIcon
|
||||
name={props.fallbackName}
|
||||
className={cn(props.className, props.muted && "opacity-70 light:brightness-[.6]")}
|
||||
className={cn(props.className, props.muted && "opacity-70 light:brightness-60")}
|
||||
/>
|
||||
) : null}
|
||||
{displayedSrc ? (
|
||||
<span
|
||||
className={cn(
|
||||
props.className,
|
||||
"inline-block overflow-hidden rounded-[3px] bg-background",
|
||||
"inline-block overflow-hidden rounded-xs bg-background",
|
||||
props.muted && "opacity-70",
|
||||
)}
|
||||
>
|
||||
@@ -4275,7 +4275,7 @@ function ToolActivityImageIcon(props: {
|
||||
aria-hidden
|
||||
decoding="async"
|
||||
referrerPolicy="no-referrer"
|
||||
className={cn("block size-full object-contain", props.muted && "light:brightness-[.6]")}
|
||||
className={cn("block size-full object-contain", props.muted && "light:brightness-60")}
|
||||
onError={() => handleLoadError(displayedSrc)}
|
||||
/>
|
||||
</span>
|
||||
@@ -4429,7 +4429,7 @@ function buildToolCallExpandedBody(
|
||||
}
|
||||
|
||||
const toolCallExpandedBodyClassName =
|
||||
"max-h-64 cursor-text overflow-auto whitespace-pre-wrap break-words font-mono text-secondary-label text-[length:var(--font-size-code,0.6875rem)] leading-relaxed select-text";
|
||||
"max-h-64 cursor-text overflow-auto whitespace-pre-wrap break-words font-mono text-secondary-label text-(length:--font-size-code,var(--text-2xs)) leading-relaxed select-text";
|
||||
|
||||
function workEntryIconName(workEntry: TimelineWorkEntry): WorkEntryIconName {
|
||||
if (
|
||||
@@ -4640,12 +4640,12 @@ function AgentSpawnMemberRow({
|
||||
{agent.title}
|
||||
</span>
|
||||
{role ? (
|
||||
<span className="max-w-28 shrink-0 truncate rounded-sm border border-border/60 px-1 font-mono text-[.65rem] text-muted-foreground">
|
||||
<span className="max-w-28 shrink-0 truncate rounded-sm border border-border/60 px-1 font-mono text-3xs text-muted-foreground">
|
||||
{role}
|
||||
</span>
|
||||
) : null}
|
||||
</p>
|
||||
<span className="shrink-0 font-mono text-[.7rem] tabular-nums text-muted-foreground">
|
||||
<span className="shrink-0 font-mono text-2xs tabular-nums text-muted-foreground">
|
||||
{statusLabel}
|
||||
</span>
|
||||
</div>
|
||||
@@ -4821,7 +4821,7 @@ const PlainWorkEntryRow = memo(function PlainWorkEntryRow(props: {
|
||||
<ToolActivityIconView
|
||||
icon={entryToolIcon}
|
||||
fallbackName={entryIconName}
|
||||
className="block size-4 shrink-0 stroke-[1.8]"
|
||||
className="block size-4 shrink-0 stroke-2"
|
||||
muted
|
||||
/>
|
||||
</span>
|
||||
|
||||
@@ -70,7 +70,7 @@ export const ModelListRow = memo(function ModelListRow(props: {
|
||||
</div>
|
||||
{props.showNewBadge ? (
|
||||
<span
|
||||
className="shrink-0 rounded border border-update/35 bg-update/15 px-0.5 py-px text-[10px] font-bold uppercase leading-none tracking-wide text-update-foreground"
|
||||
className="shrink-0 rounded border border-update/35 bg-update/15 px-0.5 py-px text-3xs font-bold uppercase leading-none tracking-wide text-update-foreground"
|
||||
aria-label="New model"
|
||||
>
|
||||
New
|
||||
|
||||
@@ -123,7 +123,7 @@ export const ModelPickerSidebar = memo(function ModelPickerSidebar(props: {
|
||||
render={
|
||||
<Toolbar.Button
|
||||
className={cn(
|
||||
"relative isolate flex w-full cursor-pointer aspect-square items-center justify-center rounded-md transition-colors hover:bg-[color-mix(in_srgb,var(--popover)_90%,var(--contrast-foreground))] focus-visible:bg-[color-mix(in_srgb,var(--popover)_90%,var(--contrast-foreground))] focus-visible:outline-none",
|
||||
"relative isolate flex w-full cursor-pointer aspect-square items-center justify-center rounded-md transition-colors hover:bg-foreground/10 focus-visible:bg-foreground/10 focus-visible:outline-none",
|
||||
)}
|
||||
onClick={() => handleSelect("favorites")}
|
||||
type="button"
|
||||
@@ -171,7 +171,7 @@ export const ModelPickerSidebar = memo(function ModelPickerSidebar(props: {
|
||||
const button = (
|
||||
<Toolbar.Button
|
||||
className={cn(
|
||||
"relative isolate flex w-full cursor-pointer aspect-square items-center justify-center rounded-md transition-colors hover:bg-[color-mix(in_srgb,var(--popover)_90%,var(--contrast-foreground))] focus-visible:bg-[color-mix(in_srgb,var(--popover)_90%,var(--contrast-foreground))] focus-visible:outline-none",
|
||||
"relative isolate flex w-full cursor-pointer aspect-square items-center justify-center rounded-md transition-colors hover:bg-foreground/10 focus-visible:bg-foreground/10 focus-visible:outline-none",
|
||||
isDisabled && "opacity-50 cursor-not-allowed hover:bg-transparent",
|
||||
)}
|
||||
data-provider-accent-color={entry.accentColor}
|
||||
@@ -210,9 +210,7 @@ export const ModelPickerSidebar = memo(function ModelPickerSidebar(props: {
|
||||
? "var(--background)"
|
||||
: "color-mix(in oklab, var(--muted) 30%, transparent)"
|
||||
}
|
||||
{...(entry.accentColor
|
||||
? { badgeClassName: "h-3 min-w-3 px-0.5 text-[7px]" }
|
||||
: {})}
|
||||
{...(entry.accentColor ? { badgeClassName: "h-3 min-w-3 px-0.5 text-3xs" } : {})}
|
||||
/>
|
||||
{showNewBadge ? (
|
||||
<span className={NEW_BADGE_CLASS} aria-hidden>
|
||||
|
||||
@@ -78,7 +78,7 @@ export const PanelLayoutControls = memo(function PanelLayoutControls({
|
||||
{liveAgentCount > 0 ? (
|
||||
<span
|
||||
aria-hidden
|
||||
className="absolute -top-1 -right-1 flex h-3.5 min-w-3.5 items-center justify-center rounded-full bg-info px-1 text-[9px] font-semibold tabular-nums text-white"
|
||||
className="absolute -top-1 -right-1 flex h-3.5 min-w-3.5 items-center justify-center rounded-full bg-info px-1 text-3xs font-semibold tabular-nums text-white"
|
||||
>
|
||||
{liveAgentCount}
|
||||
</span>
|
||||
|
||||
@@ -146,7 +146,7 @@ export const ProposedPlanCard = memo(function ProposedPlanCard({
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="rounded-[24px] border border-border/80 bg-card/70 p-4 sm:p-5">
|
||||
<div className="rounded-3xl border border-border/80 bg-card/70 p-4 sm:p-5">
|
||||
<div className="flex flex-wrap items-center justify-between gap-3">
|
||||
<div className="flex min-w-0 items-center gap-2">
|
||||
<Badge variant="secondary">Plan</Badge>
|
||||
|
||||
@@ -38,7 +38,7 @@ export const ProviderInstanceIcon = memo(function ProviderInstanceIcon(props: {
|
||||
{Icon ? (
|
||||
<Icon className={cn("size-5 shrink-0", props.iconClassName)} aria-hidden />
|
||||
) : (
|
||||
<span className={cn("text-[10px] font-semibold leading-none", props.iconClassName)}>
|
||||
<span className={cn("text-3xs font-semibold leading-none", props.iconClassName)}>
|
||||
{providerInstanceInitials(props.displayName)}
|
||||
</span>
|
||||
)}
|
||||
@@ -55,9 +55,9 @@ export const ProviderInstanceIcon = memo(function ProviderInstanceIcon(props: {
|
||||
{props.showBadge ? (
|
||||
<span
|
||||
className={cn(
|
||||
"pointer-events-none absolute right-0 bottom-0 z-10 flex h-3.5 min-w-3.5 items-center justify-center rounded-full border px-0.5 text-[8px] font-semibold leading-none shadow-sm",
|
||||
"pointer-events-none absolute right-0 bottom-0 z-10 flex h-3.5 min-w-3.5 items-center justify-center rounded-full border px-0.5 text-3xs font-semibold leading-none shadow-sm",
|
||||
props.accentColor
|
||||
? "bg-[var(--provider-accent)] text-white"
|
||||
? "bg-(--provider-accent) text-white"
|
||||
: "bg-card text-muted-foreground",
|
||||
props.badgeClassName,
|
||||
)}
|
||||
|
||||
@@ -174,6 +174,6 @@ describe("ProviderModelPicker", () => {
|
||||
expect(markup).toContain(">CP</span>");
|
||||
expect(markup).toContain("size-4");
|
||||
expect(markup).toContain("h-3");
|
||||
expect(markup).toContain("text-[7px]");
|
||||
expect(markup).toContain("text-3xs");
|
||||
});
|
||||
});
|
||||
@@ -229,13 +229,13 @@ export const ProviderModelPicker = memo(function ProviderModelPicker(props: {
|
||||
driverKind={selection.entry.driverKind}
|
||||
displayName={selection.entry.displayName}
|
||||
accentColor={selection.entry.accentColor}
|
||||
className="size-4 rounded-full bg-[var(--chat-composer-glass-surface,var(--background))] ring-2 ring-[var(--chat-composer-glass-surface,var(--background))]"
|
||||
className="size-4 rounded-full bg-(--chat-composer-glass-surface,var(--background)) ring-2 ring-(--chat-composer-glass-surface,var(--background))"
|
||||
iconClassName="size-4"
|
||||
/>
|
||||
) : null,
|
||||
)}
|
||||
{selectedEntries.length > 3 ? (
|
||||
<span className="relative z-30 flex size-4 items-center justify-center rounded-full bg-[var(--chat-composer-glass-surface,var(--background))] text-[9px] ring-2 ring-[var(--chat-composer-glass-surface,var(--background))]">
|
||||
<span className="relative z-30 flex size-4 items-center justify-center rounded-full bg-(--chat-composer-glass-surface,var(--background)) text-3xs ring-2 ring-(--chat-composer-glass-surface,var(--background))">
|
||||
+{selectedEntries.length - 3}
|
||||
</span>
|
||||
) : null}
|
||||
@@ -250,7 +250,7 @@ export const ProviderModelPicker = memo(function ProviderModelPicker(props: {
|
||||
iconClassName={cn("size-4", props.activeProviderIconClassName)}
|
||||
indicatorBackground={props.instanceIndicatorBackground ?? "var(--contrast-input)"}
|
||||
badgeClassName={cn(
|
||||
"right-[-0.125rem] bottom-[-0.125rem] h-3 min-w-3 px-0.5 text-[7px]",
|
||||
"right-[-0.125rem] bottom-[-0.125rem] h-3 min-w-3 px-0.5 text-3xs",
|
||||
size === "xs" && "shadow-none",
|
||||
)}
|
||||
/>
|
||||
|
||||
@@ -169,7 +169,7 @@ export function SnapShotContentsButton({
|
||||
{accessibilityDetails ? (
|
||||
<SnapShotAccessibilityData
|
||||
details={accessibilityDetails}
|
||||
className="max-h-64 rounded-md border border-border/70 bg-muted/45 p-2.5 text-[11px] leading-4"
|
||||
className="max-h-64 rounded-md border border-border/70 bg-muted/45 p-2.5 text-2xs leading-4"
|
||||
/>
|
||||
) : includesAccessibility ? (
|
||||
<div className="rounded-md border border-border/70 bg-muted/45 p-2.5 text-muted-foreground text-xs leading-4">
|
||||
@@ -204,16 +204,16 @@ export function SnapShotAttachmentDetails({
|
||||
{source.appIconDataUrl ? (
|
||||
<img src={source.appIconDataUrl} alt="" className="size-7 shrink-0 rounded-md" />
|
||||
) : (
|
||||
<div className="flex size-7 shrink-0 items-center justify-center rounded-md bg-white/20 text-[10px] font-medium text-white uppercase">
|
||||
<div className="flex size-7 shrink-0 items-center justify-center rounded-md bg-white/20 text-3xs font-medium text-white uppercase">
|
||||
{source.appName.slice(0, 1)}
|
||||
</div>
|
||||
)}
|
||||
<div className="min-w-0 flex-1">
|
||||
<div className="flex min-w-0 items-center gap-1.5 text-[11px] font-medium leading-3.5 text-white">
|
||||
<div className="flex min-w-0 items-center gap-1.5 text-2xs font-medium leading-3.5 text-white">
|
||||
<span className="truncate">{source.appName}</span>
|
||||
<SnapShotContentsButton source={source} className="pointer-events-auto" />
|
||||
</div>
|
||||
<div className="truncate text-[9px] leading-3.5 text-white/70">
|
||||
<div className="truncate text-3xs leading-3.5 text-white/70">
|
||||
{source.windowTitle || "Captured window"}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -56,7 +56,7 @@ function useNowWhile(active: boolean): number {
|
||||
}
|
||||
|
||||
function StageIcon({ status }: { status: WorktreeSetupStage["status"] }) {
|
||||
const className = "size-4 shrink-0 stroke-[1.8]";
|
||||
const className = "size-4 shrink-0 stroke-2";
|
||||
switch (status) {
|
||||
case "done":
|
||||
return <CheckIcon aria-hidden className={className} />;
|
||||
@@ -240,7 +240,7 @@ function OutputTail({ lines, failed }: { lines: ReadonlyArray<string>; failed: b
|
||||
return (
|
||||
<pre
|
||||
className={cn(
|
||||
"mb-1 ml-8 overflow-hidden rounded-md border px-2.5 py-1.5 font-mono text-[11px] leading-relaxed select-text",
|
||||
"mb-1 ml-8 overflow-hidden rounded-md border px-2.5 py-1.5 font-mono text-2xs leading-relaxed select-text",
|
||||
failed
|
||||
? "border-destructive/20 bg-error-surface text-destructive-foreground"
|
||||
: "border-border bg-code text-muted-foreground",
|
||||
|
||||
@@ -22,9 +22,9 @@ export function ClerkUserProfilePage({
|
||||
<div className={cn("w-full min-w-0 text-foreground", className)}>
|
||||
<header className="flex flex-col gap-3 pb-4 sm:flex-row sm:items-start sm:justify-between sm:gap-4 sm:pr-8">
|
||||
<div className="min-w-0">
|
||||
<h2 className="text-[1.0625rem] leading-6 font-semibold">{title}</h2>
|
||||
<h2 className="text-base leading-6 font-semibold">{title}</h2>
|
||||
{description ? (
|
||||
<p className="mt-1 max-w-[34rem] text-[0.8125rem] leading-[1.125rem] text-muted-foreground sm:min-h-9">
|
||||
<p className="mt-1 max-w-[34rem] text-xs leading-4.5 text-muted-foreground sm:min-h-9">
|
||||
{description}
|
||||
</p>
|
||||
) : null}
|
||||
|
||||
@@ -38,14 +38,14 @@ function MobileClientRow({ device }: { readonly device: RelayClientDeviceRecord
|
||||
<ClerkUserProfileRow icon={<SmartphoneIcon className="size-4" />}>
|
||||
<div className="flex flex-col gap-0.5 sm:flex-row sm:items-start sm:justify-between sm:gap-3">
|
||||
<div className="min-w-0">
|
||||
<h3 className="truncate text-[0.8125rem] leading-[1.125rem] font-medium text-foreground">
|
||||
<h3 className="truncate text-sm leading-4.5 font-medium text-foreground">
|
||||
{device.label}
|
||||
</h3>
|
||||
<p className="text-xs leading-[1.125rem] text-muted-foreground">
|
||||
<p className="text-xs leading-4.5 text-muted-foreground">
|
||||
{mobileClientPlatformLabel(device)}
|
||||
</p>
|
||||
</div>
|
||||
<p className="shrink-0 text-[0.6875rem] leading-4 text-muted-foreground/75">
|
||||
<p className="shrink-0 text-2xs leading-4 text-muted-foreground/75">
|
||||
{mobileClientUpdatedAtLabel(device.updatedAt)}
|
||||
</p>
|
||||
</div>
|
||||
@@ -56,7 +56,7 @@ function MobileClientRow({ device }: { readonly device: RelayClientDeviceRecord
|
||||
/>
|
||||
<MobileClientStatusBadge enabled={device.liveActivities.enabled} label="Live Activities" />
|
||||
</div>
|
||||
<p className="mt-1.5 text-xs leading-[1.125rem] text-muted-foreground/80">
|
||||
<p className="mt-1.5 text-xs leading-4.5 text-muted-foreground/80">
|
||||
{mobileClientNotificationDetail(device)}
|
||||
</p>
|
||||
</ClerkUserProfileRow>
|
||||
@@ -123,7 +123,7 @@ export function MobileClientsUserProfilePage() {
|
||||
<div>
|
||||
{devicesState.error ? (
|
||||
<div
|
||||
className="mb-4 flex flex-col gap-3 border-t border-destructive/35 py-3 text-[0.8125rem] sm:flex-row sm:items-center sm:justify-between"
|
||||
className="mb-4 flex flex-col gap-3 border-t border-destructive/35 py-3 text-xs sm:flex-row sm:items-center sm:justify-between"
|
||||
role="alert"
|
||||
>
|
||||
<div>
|
||||
|
||||
@@ -51,10 +51,10 @@ export function T3ConnectEnvironmentRow(props: {
|
||||
<Collapsible open={props.confirmationOpen} onOpenChange={props.onConfirmationChange}>
|
||||
<div className="flex items-start gap-4">
|
||||
<div className="min-w-0 flex-1">
|
||||
<h3 className="truncate text-[0.8125rem] leading-[1.125rem] font-medium text-foreground">
|
||||
<h3 className="truncate text-sm leading-4.5 font-medium text-foreground">
|
||||
{environment.label}
|
||||
</h3>
|
||||
<p className="mt-1 text-xs leading-[1.125rem] text-muted-foreground">
|
||||
<p className="mt-1 text-xs leading-4.5 text-muted-foreground">
|
||||
{linkedAtLabel(environment.linkedAt)} · {endpointLabel(environment)}
|
||||
</p>
|
||||
</div>
|
||||
@@ -74,13 +74,13 @@ export function T3ConnectEnvironmentRow(props: {
|
||||
role="group"
|
||||
aria-label={`Confirm deregistration of ${environment.label}`}
|
||||
>
|
||||
<h4 className="text-[0.8125rem] leading-[1.125rem] font-semibold text-foreground">
|
||||
<h4 className="text-sm leading-4.5 font-semibold text-foreground">
|
||||
Deregister server
|
||||
</h4>
|
||||
<p className="mt-1 text-[0.8125rem] leading-[1.125rem] text-muted-foreground">
|
||||
<p className="mt-1 text-xs leading-4.5 text-muted-foreground">
|
||||
“{environment.label}” will be removed from this account.
|
||||
</p>
|
||||
<p className="mt-4 max-w-xl text-[0.8125rem] leading-[1.125rem] text-muted-foreground">
|
||||
<p className="mt-4 max-w-xl text-xs leading-4.5 text-muted-foreground">
|
||||
T3 Connect access will be revoked, any managed tunnel will be removed, and a host
|
||||
space will become available. Local connections on your devices are not changed.
|
||||
</p>
|
||||
@@ -205,7 +205,7 @@ export function T3ConnectUserProfilePage() {
|
||||
>
|
||||
<div>
|
||||
{environmentsState.error ? (
|
||||
<div className="mb-4 border-t border-destructive/35 py-3 text-[0.8125rem]" role="alert">
|
||||
<div className="mb-4 border-t border-destructive/35 py-3 text-xs" role="alert">
|
||||
<p className="font-medium text-destructive-foreground">
|
||||
Could not load T3 Connect environments
|
||||
</p>
|
||||
@@ -214,7 +214,7 @@ export function T3ConnectUserProfilePage() {
|
||||
) : null}
|
||||
|
||||
{isInitialLoad ? (
|
||||
<p className="border-t py-4 text-[0.8125rem] text-muted-foreground" role="status">
|
||||
<p className="border-t py-4 text-xs text-muted-foreground" role="status">
|
||||
Loading environments…
|
||||
</p>
|
||||
) : environments.length > 0 ? (
|
||||
|
||||
@@ -23,9 +23,7 @@ function ConnectCliAuthMessage({
|
||||
return (
|
||||
<>
|
||||
{eyebrow ? (
|
||||
<p className="text-[10px] font-semibold tracking-[0.18em] text-primary uppercase">
|
||||
{eyebrow}
|
||||
</p>
|
||||
<p className="text-3xs font-semibold tracking-widest text-primary uppercase">{eyebrow}</p>
|
||||
) : null}
|
||||
<h1 className="mt-2 text-2xl font-semibold tracking-tight sm:text-3xl">{title}</h1>
|
||||
<p className="mt-2 text-sm leading-relaxed text-muted-foreground">{description}</p>
|
||||
|
||||
@@ -269,7 +269,7 @@ function ComposerReviewCommentDetails({ comment }: { comment: ReviewCommentConte
|
||||
<div className="space-y-2 overflow-hidden rounded-lg border border-border/70 bg-background/70 p-3">
|
||||
<div className="space-y-1">
|
||||
<div className="truncate text-xs font-medium text-foreground">{comment.filePath}</div>
|
||||
<div className="text-secondary-label text-[11px]">
|
||||
<div className="text-secondary-label text-2xs">
|
||||
{comment.sectionTitle} · {comment.rangeLabel}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -208,8 +208,8 @@ export function ImageChipButton({
|
||||
<ImageIcon />
|
||||
)}
|
||||
<ContextChipLabel className="max-w-72">{middleTruncateAttachmentName(name)}</ContextChipLabel>
|
||||
<span className="shrink-0 text-[10px] text-current">{size}</span>
|
||||
{suffix ? <span className="text-[10px] text-current">{suffix}</span> : null}
|
||||
<span className="shrink-0 text-3xs text-current">{size}</span>
|
||||
{suffix ? <span className="text-3xs text-current">{suffix}</span> : null}
|
||||
</ContextChip>
|
||||
);
|
||||
}
|
||||
@@ -284,8 +284,8 @@ function FileChipContent(props: {
|
||||
<ContextChipLabel className="max-w-72">
|
||||
{middleTruncateAttachmentName(props.name)}
|
||||
</ContextChipLabel>
|
||||
<span className="shrink-0 text-[10px] text-current">{props.size}</span>
|
||||
{props.suffix ? <span className="text-[10px] text-current">{props.suffix}</span> : null}
|
||||
<span className="shrink-0 text-3xs text-current">{props.size}</span>
|
||||
{props.suffix ? <span className="text-3xs text-current">{props.suffix}</span> : null}
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -404,7 +404,7 @@ export function DeviceStreamView(props: {
|
||||
}}
|
||||
>
|
||||
{element.label ? (
|
||||
<span className="absolute -top-3.5 left-0 max-w-full truncate rounded-sm bg-info px-1 text-[9px] leading-3.5 text-white">
|
||||
<span className="absolute -top-3.5 left-0 max-w-full truncate rounded-sm bg-info px-1 text-3xs leading-3.5 text-white">
|
||||
{element.label}
|
||||
</span>
|
||||
) : null}
|
||||
|
||||
@@ -640,7 +640,7 @@ function EventLogSection(props: {
|
||||
/>
|
||||
</CollapsibleTrigger>
|
||||
<CollapsiblePanel>
|
||||
<ol className="max-h-64 overflow-y-auto px-3 py-2 font-mono text-[11px] leading-relaxed">
|
||||
<ol className="max-h-64 overflow-y-auto px-3 py-2 font-mono text-2xs leading-relaxed">
|
||||
{entries.length === 0 ? (
|
||||
<li className="text-muted-foreground">No events yet.</li>
|
||||
) : (
|
||||
|
||||
@@ -65,7 +65,7 @@ export function DiffCommentAnnotation({
|
||||
onPointerDown={(event) => event.stopPropagation()}
|
||||
>
|
||||
<MessageCircle className="mt-0.5 size-3.5 shrink-0 text-primary/70" aria-hidden="true" />
|
||||
<p className="min-w-0 flex-1 whitespace-pre-wrap text-[13px] leading-5">{displayedText}</p>
|
||||
<p className="min-w-0 flex-1 whitespace-pre-wrap text-sm leading-5">{displayedText}</p>
|
||||
{onDelete ? (
|
||||
<span className="-my-1 -mr-1 flex shrink-0 opacity-0 transition-opacity group-hover/comment:opacity-100 focus-within:opacity-100 max-sm:opacity-100">
|
||||
<Button
|
||||
@@ -113,7 +113,7 @@ export function DiffCommentAnnotation({
|
||||
}}
|
||||
/>
|
||||
<div className="mt-1.5 flex items-center gap-1">
|
||||
<span className="mr-auto text-[10px] text-muted-foreground/70">⌘/Ctrl Enter to send</span>
|
||||
<span className="mr-auto text-3xs text-muted-foreground/70">⌘/Ctrl Enter to send</span>
|
||||
<Button variant="ghost-muted" size="xs" onClick={onCancel}>
|
||||
Cancel
|
||||
</Button>
|
||||
|
||||
@@ -1172,7 +1172,7 @@ export default function FilePreviewPanel({
|
||||
!isMedia &&
|
||||
!renderBrowserFile &&
|
||||
file.data?.truncated ? (
|
||||
<div className="shrink-0 border-b border-warning/20 bg-warning-surface px-3 py-1.5 text-[11px] text-warning-foreground">
|
||||
<div className="shrink-0 border-b border-warning/20 bg-warning-surface px-3 py-1.5 text-2xs text-warning-foreground">
|
||||
Preview limited to the first 1 MB of a {file.data.byteLength.toLocaleString()} byte file.
|
||||
</div>
|
||||
) : null}
|
||||
|
||||
@@ -114,7 +114,7 @@ export function FileSurfaceNotice(props: { readonly children: ReactNode }) {
|
||||
return (
|
||||
<div
|
||||
role="status"
|
||||
className="shrink-0 border-b border-warning/20 bg-warning-surface px-3 py-1.5 text-[11px] text-warning-foreground"
|
||||
className="shrink-0 border-b border-warning/20 bg-warning-surface px-3 py-1.5 text-2xs text-warning-foreground"
|
||||
>
|
||||
{props.children}
|
||||
</div>
|
||||
|
||||
@@ -193,7 +193,7 @@ export function WelcomeWizard({
|
||||
identity={
|
||||
<div className="flex items-baseline gap-1.5" role="img" aria-label="T3 Code">
|
||||
<T3Wordmark className="h-4 w-auto shrink-0" aria-hidden />
|
||||
<span className="text-[1.4rem] font-medium tracking-tight text-muted-foreground">
|
||||
<span className="text-2xl font-medium tracking-tight text-muted-foreground">
|
||||
Code
|
||||
</span>
|
||||
</div>
|
||||
@@ -892,7 +892,7 @@ function AgentInstallTerminal({
|
||||
className="mt-4 overflow-hidden rounded-lg border border-border/70 bg-background text-foreground"
|
||||
>
|
||||
<div className="flex items-center justify-between border-b border-border/60 bg-background/60 px-3 py-1.5">
|
||||
<span className="text-[11px] font-medium text-muted-foreground">
|
||||
<span className="text-2xs font-medium text-muted-foreground">
|
||||
{setupState === "writeFailed" ? (
|
||||
<>
|
||||
Run <code className="rounded bg-muted px-1 font-mono">{command}</code> in this
|
||||
@@ -1445,9 +1445,7 @@ function ImportCandidateRow({
|
||||
{label}
|
||||
</span>
|
||||
{secondary !== undefined ? (
|
||||
<span className="truncate font-mono text-[11px] text-muted-foreground">
|
||||
{secondary}
|
||||
</span>
|
||||
<span className="truncate font-mono text-2xs text-muted-foreground">{secondary}</span>
|
||||
) : null}
|
||||
</TooltipTrigger>
|
||||
<TooltipPopup variant="code">{candidate.path}</TooltipPopup>
|
||||
|
||||
@@ -55,7 +55,7 @@ function AgentBrowserCursorEvent(props: {
|
||||
|
||||
return (
|
||||
<div
|
||||
className="pointer-events-none absolute left-0 top-0 z-40 transition-[transform,opacity] duration-150 ease-out motion-reduce:transition-none"
|
||||
className="pointer-events-none absolute left-0 top-0 z-40 transition-[opacity,transform] duration-150 ease-out motion-reduce:transition-none"
|
||||
style={{
|
||||
opacity: agentBrowserCursorOpacity(active, controller),
|
||||
transform: `translate3d(${event.x * zoomFactor * (content?.scale ?? 1) + (content?.x ?? 0) - (content?.scrollLeft ?? 0)}px, ${event.y * zoomFactor * (content?.scale ?? 1) + (content?.y ?? 0) - (content?.scrollTop ?? 0)}px, 0)`,
|
||||
|
||||
@@ -6,16 +6,16 @@ export function BrowserMockup({ className }: { className?: string }) {
|
||||
<div
|
||||
aria-hidden
|
||||
className={cn(
|
||||
"relative flex flex-col gap-0.5 overflow-hidden rounded-[5px] border border-border/60 bg-card p-1 shadow-xs/5",
|
||||
"relative flex flex-col gap-0.5 overflow-hidden rounded-sm border border-border/60 bg-card p-1 shadow-xs/5",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
<div className="flex gap-[2px]">
|
||||
<div className="flex gap-0.5">
|
||||
<span className="size-[3px] rounded-full bg-destructive/80" />
|
||||
<span className="size-[3px] rounded-full bg-warning/80" />
|
||||
<span className="size-[3px] rounded-full bg-success/80" />
|
||||
</div>
|
||||
<div className="mt-[1px] flex flex-1 flex-col gap-[2px]">
|
||||
<div className="mt-[1px] flex flex-1 flex-col gap-0.5">
|
||||
<span className="h-[2px] w-full rounded-full bg-muted-foreground/30" />
|
||||
<span className="h-[2px] w-3/5 rounded-full bg-muted-foreground/20" />
|
||||
</div>
|
||||
|
||||
@@ -126,7 +126,7 @@ export function PreviewPanelShell(props: {
|
||||
: "shrink-0 border-l border-border"
|
||||
: "w-full",
|
||||
collapsible &&
|
||||
"[[data-panel-animations=true]_&]:transition-[width] [[data-panel-animations=true]_&]:[transition-duration:var(--panel-animation-duration)] [[data-panel-animations=true]_&]:ease-out",
|
||||
"[[data-panel-animations=true]_&]:transition-[width] [[data-panel-animations=true]_&]:duration-(--panel-animation-duration) [[data-panel-animations=true]_&]:ease-out",
|
||||
collapsible && open && "[[data-panel-animations=true]_&]:starting:w-0!",
|
||||
collapsible && !open && "pointer-events-none",
|
||||
)}
|
||||
|
||||
@@ -828,7 +828,7 @@ function PullRequestCodeTab({
|
||||
<PullRequestDiffStat
|
||||
additions={additions}
|
||||
deletions={deletions}
|
||||
className="font-mono text-[11px]"
|
||||
className="font-mono text-2xs"
|
||||
/>
|
||||
);
|
||||
const viewedFiles = filesViewedRef.current;
|
||||
@@ -842,7 +842,7 @@ function PullRequestCodeTab({
|
||||
attribute is what the header's capture listener looks for. */}
|
||||
<label
|
||||
data-viewed-toggle=""
|
||||
className="flex cursor-pointer select-none items-center gap-1.5 text-[11px] text-muted-foreground"
|
||||
className="flex cursor-pointer select-none items-center gap-1.5 text-2xs text-muted-foreground"
|
||||
onClick={(event) => event.stopPropagation()}
|
||||
>
|
||||
<Checkbox
|
||||
|
||||
@@ -93,7 +93,7 @@ export function PullRequestComposer({
|
||||
{pendingComments.length > 0 ? (
|
||||
<span
|
||||
aria-hidden
|
||||
className="absolute -top-1 -right-1 flex h-3.5 min-w-3.5 items-center justify-center rounded-full bg-info px-1 text-[9px] font-semibold tabular-nums text-white"
|
||||
className="absolute -top-1 -right-1 flex h-3.5 min-w-3.5 items-center justify-center rounded-full bg-info px-1 text-3xs font-semibold tabular-nums text-white"
|
||||
>
|
||||
{pendingComments.length}
|
||||
</span>
|
||||
|
||||
@@ -2260,7 +2260,7 @@ export function PullRequestDetailPanel({
|
||||
<span className="shrink-0">{formatRelativeTimeLabel(detail.updatedAt)}</span>
|
||||
</span>
|
||||
<span aria-hidden className="h-3 w-px shrink-0 bg-border/70" />
|
||||
<span className="flex min-w-0 flex-1 items-center gap-1.5 font-mono text-[11px] text-muted-foreground/65">
|
||||
<span className="flex min-w-0 flex-1 items-center gap-1.5 font-mono text-2xs text-muted-foreground/65">
|
||||
{/* An out-of-date base wears the warning on the branch name itself, so the
|
||||
name is amber and pointing at either the name or the mark opens the way
|
||||
out. Up to date, the name keeps its plain tooltip. */}
|
||||
@@ -2322,7 +2322,7 @@ export function PullRequestDetailPanel({
|
||||
<TooltipPopup side="top">{detail.headBranch}</TooltipPopup>
|
||||
</Tooltip>
|
||||
</span>
|
||||
<span className="ml-auto inline-flex shrink-0 items-center justify-end gap-2 text-[11px]">
|
||||
<span className="ml-auto inline-flex shrink-0 items-center justify-end gap-2 text-2xs">
|
||||
<span
|
||||
className="inline-flex items-center gap-1 tabular-nums"
|
||||
aria-label={`${detail.changedFiles.toLocaleString()} changed ${
|
||||
@@ -2335,7 +2335,7 @@ export function PullRequestDetailPanel({
|
||||
<PullRequestDiffStat
|
||||
additions={detail.additions}
|
||||
deletions={detail.deletions}
|
||||
className="shrink-0 font-mono text-[11px]"
|
||||
className="shrink-0 font-mono text-2xs"
|
||||
/>
|
||||
</span>
|
||||
</div>
|
||||
@@ -2609,7 +2609,7 @@ export function PullRequestDetailPanel({
|
||||
<div className="ml-auto flex shrink-0 items-center gap-2 text-xs text-muted-foreground">
|
||||
<PullRequestMetaLine
|
||||
className={cn(
|
||||
"whitespace-nowrap text-[11px] transition-opacity",
|
||||
"whitespace-nowrap text-2xs transition-opacity",
|
||||
(activityPending || activityError) && "opacity-35",
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -106,7 +106,7 @@ export function PullRequestLinkPreview({
|
||||
))
|
||||
) : (
|
||||
<div className="min-w-0">
|
||||
<div className="flex min-w-0 items-center gap-1.5 text-[11px] text-muted-foreground">
|
||||
<div className="flex min-w-0 items-center gap-1.5 text-2xs text-muted-foreground">
|
||||
<span className="min-w-0 truncate">{detail.repository}</span>
|
||||
<span className="shrink-0">#{detail.number}</span>
|
||||
<span aria-hidden>·</span>
|
||||
|
||||
@@ -68,7 +68,7 @@ export function PullRequestRowGlyph({
|
||||
/>
|
||||
</span>
|
||||
</span>
|
||||
{below ? <span className="inline-flex text-[11px]">{below}</span> : null}
|
||||
{below ? <span className="inline-flex text-2xs">{below}</span> : null}
|
||||
</span>
|
||||
);
|
||||
}
|
||||
@@ -100,15 +100,15 @@ export function PullRequestRowLines({
|
||||
{number}
|
||||
<span className="min-w-0 truncate text-sm">{title}</span>
|
||||
{signals ? (
|
||||
<span className="flex shrink-0 items-center gap-1 text-[11px]">{signals}</span>
|
||||
<span className="flex shrink-0 items-center gap-1 text-2xs">{signals}</span>
|
||||
) : null}
|
||||
{status ? (
|
||||
<span className="ml-auto flex shrink-0 items-center gap-1.5 text-[11px]">{status}</span>
|
||||
<span className="ml-auto flex shrink-0 items-center gap-1.5 text-2xs">{status}</span>
|
||||
) : null}
|
||||
</span>
|
||||
<span
|
||||
className={cn(
|
||||
"flex min-w-0 items-center gap-1.5 overflow-hidden text-[11px] text-muted-foreground",
|
||||
"flex min-w-0 items-center gap-1.5 overflow-hidden text-2xs text-muted-foreground",
|
||||
metaClassName,
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -204,7 +204,7 @@ function PullRequestRowImpl({
|
||||
<Tooltip>
|
||||
<TooltipTrigger
|
||||
render={
|
||||
<span className="flex min-w-6 items-center gap-1 overflow-hidden rounded-full border border-border/60 px-1 text-[10px]" />
|
||||
<span className="flex min-w-6 items-center gap-1 overflow-hidden rounded-full border border-border/60 px-1 text-3xs" />
|
||||
}
|
||||
>
|
||||
<span className="sr-only">matched in the description</span>
|
||||
|
||||
@@ -401,7 +401,7 @@ function CommentGroup({
|
||||
</span>
|
||||
))}
|
||||
{authors.length > 3 ? (
|
||||
<span className="relative flex size-6 items-center justify-center rounded-full bg-muted text-[10px] text-muted-foreground ring-2 ring-background">
|
||||
<span className="relative flex size-6 items-center justify-center rounded-full bg-muted text-3xs text-muted-foreground ring-2 ring-background">
|
||||
+{authors.length - 3}
|
||||
</span>
|
||||
) : null}
|
||||
@@ -412,7 +412,7 @@ function CommentGroup({
|
||||
>
|
||||
<span className="min-w-0 flex-1 space-y-1">
|
||||
<span className="block text-xs font-medium text-foreground/90">{label}</span>
|
||||
<span className="flex flex-wrap gap-x-1.5 text-[11px] text-muted-foreground">
|
||||
<span className="flex flex-wrap gap-x-1.5 text-2xs text-muted-foreground">
|
||||
<span>
|
||||
{authors.length} {authors.length === 1 ? "author" : "authors"}
|
||||
</span>
|
||||
|
||||
@@ -141,7 +141,7 @@ function ActorTimelineMarker({
|
||||
<PullRequestActorAvatar
|
||||
actor={actor}
|
||||
className={cn(
|
||||
"size-7 bg-muted text-[9px] transition-opacity",
|
||||
"size-7 bg-muted text-3xs transition-opacity",
|
||||
muted && "opacity-45 grayscale",
|
||||
)}
|
||||
/>
|
||||
@@ -156,9 +156,7 @@ function friendlyReviewState(value: string): string {
|
||||
|
||||
function ReviewStateBadge({ state }: { state: string }) {
|
||||
return (
|
||||
<span className="text-[10px] font-medium text-muted-foreground">
|
||||
{friendlyReviewState(state)}
|
||||
</span>
|
||||
<span className="text-3xs font-medium text-muted-foreground">{friendlyReviewState(state)}</span>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -224,7 +222,7 @@ function ConversationCard({
|
||||
<span className="text-muted-foreground">{event.title}</span>
|
||||
{event.reviewState ? <ReviewStateBadge state={event.reviewState} /> : null}
|
||||
</div>
|
||||
<PullRequestMetaLine className="mt-1 flex-wrap text-[11px] text-muted-foreground">
|
||||
<PullRequestMetaLine className="mt-1 flex-wrap text-2xs text-muted-foreground">
|
||||
<span>{formatRelativeTimeLabel(event.at)}</span>
|
||||
{event.path ? (
|
||||
<span className="inline-flex min-w-0 items-center gap-1">
|
||||
@@ -330,7 +328,7 @@ function ConversationGroup({
|
||||
<span className="block text-xs font-semibold">
|
||||
{events.length.toLocaleString()} {events.length === 1 ? "comment" : "comments"}
|
||||
</span>
|
||||
<span className="block truncate text-[10px] text-muted-foreground">
|
||||
<span className="block truncate text-3xs text-muted-foreground">
|
||||
{actors.length.toLocaleString()} {actors.length === 1 ? "author" : "authors"} ·{" "}
|
||||
{formatRelativeTimeLabel(first.at)}
|
||||
</span>
|
||||
@@ -391,7 +389,7 @@ function CommitEvent({
|
||||
<div className="truncate text-xs font-semibold text-foreground transition-colors group-hover:text-primary">
|
||||
{event.body ?? "Untitled commit"}
|
||||
</div>
|
||||
<div className="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[10px] text-muted-foreground">
|
||||
<div className="mt-1 flex flex-wrap items-center gap-x-2 gap-y-0.5 text-3xs text-muted-foreground">
|
||||
<code className="font-mono">{event.id.slice(0, 7)}</code>
|
||||
<span>{formatRelativeTimeLabel(event.at)}</span>
|
||||
</div>
|
||||
@@ -400,7 +398,7 @@ function CommitEvent({
|
||||
<PullRequestDiffStat
|
||||
additions={event.additions}
|
||||
deletions={event.deletions}
|
||||
className="ml-auto shrink-0 font-mono text-[10px]"
|
||||
className="ml-auto shrink-0 font-mono text-3xs"
|
||||
/>
|
||||
) : null}
|
||||
</div>
|
||||
@@ -433,7 +431,7 @@ function LifecycleEvent({ event }: { event: PullRequestTimelineEvent }) {
|
||||
{event.actor ? <ActorName actor={event.actor} /> : null}
|
||||
<span className="font-semibold text-foreground">{presentation.label}</span>
|
||||
</div>
|
||||
<div className="mt-0.5 text-[11px] text-muted-foreground">
|
||||
<div className="mt-0.5 text-2xs text-muted-foreground">
|
||||
{formatRelativeTimeLabel(event.at)}
|
||||
</div>
|
||||
</div>
|
||||
@@ -500,7 +498,7 @@ function ReviewVerdictEvent({
|
||||
</Tooltip>
|
||||
</div>
|
||||
<div className="mt-0.5 flex min-w-0 flex-wrap items-center gap-x-2 gap-y-1">
|
||||
<PullRequestMetaLine className="flex-wrap text-[11px] text-muted-foreground">
|
||||
<PullRequestMetaLine className="flex-wrap text-2xs text-muted-foreground">
|
||||
<span>{formatRelativeTimeLabel(event.at)}</span>
|
||||
{event.path ? (
|
||||
<span className="inline-flex min-w-0 items-center gap-1">
|
||||
|
||||
@@ -308,7 +308,7 @@ function EnabledThreadPullRequestsPanel({ threadRef }: { threadRef: ScopedThread
|
||||
))}
|
||||
</div>
|
||||
</ScrollArea>
|
||||
<footer className="flex items-center justify-between border-t border-border/60 px-2 py-1.5 text-[.7rem] text-muted-foreground">
|
||||
<footer className="flex items-center justify-between border-t border-border/60 px-2 py-1.5 text-2xs text-muted-foreground">
|
||||
<span>
|
||||
{openCount} open · {links.length} linked
|
||||
{lastSynced ? ` · synced ${formatRelativeTimeLabel(lastSynced)}` : ""}
|
||||
|
||||
@@ -428,7 +428,7 @@ export function PullRequestActorAvatar({
|
||||
<span
|
||||
aria-hidden
|
||||
className={cn(
|
||||
"flex size-4 shrink-0 items-center justify-center rounded-full bg-muted text-[8px] font-medium text-muted-foreground",
|
||||
"flex size-4 shrink-0 items-center justify-center rounded-full bg-muted text-3xs font-medium text-muted-foreground",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
|
||||
@@ -111,7 +111,7 @@ function HighlightedTokens(props: {
|
||||
.map((segment) =>
|
||||
segment.isMatch ? (
|
||||
<mark
|
||||
className="rounded-[2px] bg-primary/25 text-inherit"
|
||||
className="rounded-xs bg-primary/25 text-inherit"
|
||||
key={`${segment.start}:${segment.end}:match`}
|
||||
style={tokenStyle(segment.token)}
|
||||
>
|
||||
|
||||
@@ -265,7 +265,7 @@ function OpenContentSearchDialog(props: {
|
||||
{path.directory}
|
||||
</span>
|
||||
) : null}
|
||||
<span className="ml-auto rounded-full bg-muted px-1.5 py-0.5 tabular-nums text-[10px] text-muted-foreground">
|
||||
<span className="ml-auto rounded-full bg-muted px-1.5 py-0.5 tabular-nums text-3xs text-muted-foreground">
|
||||
{group.matches.length}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -310,7 +310,7 @@ export function AddProviderInstanceDialog({
|
||||
value={label}
|
||||
onChange={(event) => setLabel(event.target.value)}
|
||||
/>
|
||||
<span className="text-[11px] text-muted-foreground">
|
||||
<span className="text-2xs text-muted-foreground">
|
||||
Shown in the provider list. Optional.
|
||||
</span>
|
||||
</label>
|
||||
@@ -326,9 +326,9 @@ export function AddProviderInstanceDialog({
|
||||
aria-invalid={showInstanceIdError}
|
||||
/>
|
||||
{showInstanceIdError ? (
|
||||
<span className="text-[11px] text-destructive">{instanceIdError}</span>
|
||||
<span className="text-2xs text-destructive">{instanceIdError}</span>
|
||||
) : (
|
||||
<span className="text-[11px] text-muted-foreground">
|
||||
<span className="text-2xs text-muted-foreground">
|
||||
Routing key used by threads and sessions. Letters, digits, '-', or '_'.
|
||||
</span>
|
||||
)}
|
||||
@@ -374,7 +374,7 @@ export function AddProviderInstanceDialog({
|
||||
</Button>
|
||||
) : null}
|
||||
</div>
|
||||
<span className="text-[11px] text-muted-foreground">
|
||||
<span className="text-2xs text-muted-foreground">
|
||||
Optional marker shown in the picker.
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -771,11 +771,11 @@ const PairingLinkListRow = memo(function PairingLinkListRow({
|
||||
<AccessScopeSummary scopes={pairingLink.scopes} label="Pairing link scopes" />
|
||||
</p>
|
||||
{!credential ? (
|
||||
<p className="text-[11px] text-muted-foreground/70">
|
||||
<p className="text-2xs text-muted-foreground/70">
|
||||
Create a new link to share from this client.
|
||||
</p>
|
||||
) : shareablePairingUrl === null ? (
|
||||
<p className="text-[11px] text-muted-foreground/70">
|
||||
<p className="text-2xs text-muted-foreground/70">
|
||||
Copy the token and pair from another client using this backend's reachable host.
|
||||
</p>
|
||||
) : null}
|
||||
@@ -882,7 +882,7 @@ const PairingLinkListRow = memo(function PairingLinkListRow({
|
||||
role="radiogroup"
|
||||
aria-label="Endpoint the pairing QR code and URL use"
|
||||
>
|
||||
<p className="text-[11px] text-muted-foreground/70">Reach this machine via</p>
|
||||
<p className="text-2xs text-muted-foreground/70">Reach this machine via</p>
|
||||
{endpointCopyOptions.map((option) => {
|
||||
const isSelected = option.id === selectedQrOption?.id;
|
||||
return (
|
||||
@@ -907,7 +907,7 @@ const PairingLinkListRow = memo(function PairingLinkListRow({
|
||||
>
|
||||
{option.label}
|
||||
</span>
|
||||
<span className="min-w-0 truncate text-[11px] text-muted-foreground/70">
|
||||
<span className="min-w-0 truncate text-2xs text-muted-foreground/70">
|
||||
{option.detail}
|
||||
</span>
|
||||
</button>
|
||||
@@ -919,7 +919,7 @@ const PairingLinkListRow = memo(function PairingLinkListRow({
|
||||
<Tooltip>
|
||||
<TooltipTrigger
|
||||
render={
|
||||
<code className="min-w-0 flex-1 truncate font-mono text-[11px] text-muted-foreground">
|
||||
<code className="min-w-0 flex-1 truncate font-mono text-2xs text-muted-foreground">
|
||||
{qrPairingUrl}
|
||||
</code>
|
||||
}
|
||||
@@ -951,7 +951,7 @@ const PairingLinkListRow = memo(function PairingLinkListRow({
|
||||
</div>
|
||||
) : (
|
||||
<div className="flex size-[192px] shrink-0 items-center justify-center self-center rounded-xl border border-border/50 p-4 sm:self-start">
|
||||
<p className="text-center text-[11px] text-muted-foreground/70">
|
||||
<p className="text-center text-2xs text-muted-foreground/70">
|
||||
No QR for this endpoint. Another device scanning a loopback link would dial itself;
|
||||
copy the URL for use on this machine instead.
|
||||
</p>
|
||||
@@ -1011,7 +1011,7 @@ const ConnectedClientListRow = memo(function ConnectedClientListRow({
|
||||
/>
|
||||
<h3 className="text-sm font-medium text-foreground">{primaryLabel}</h3>
|
||||
{clientSession.current ? (
|
||||
<span className="text-[10px] text-muted-foreground/80 rounded-md border border-border/50 bg-muted/50 px-1 py-0.5">
|
||||
<span className="text-3xs text-muted-foreground/80 rounded-md border border-border/50 bg-muted/50 px-1 py-0.5">
|
||||
This device
|
||||
</span>
|
||||
) : null}
|
||||
@@ -1335,14 +1335,14 @@ const AdvertisedEndpointListRow = memo(function AdvertisedEndpointListRow({
|
||||
</Tooltip>
|
||||
) : null}
|
||||
{!isAvailable ? (
|
||||
<span className="shrink-0 rounded-md border border-border/70 px-1 py-0.5 text-[10px] text-muted-foreground">
|
||||
<span className="shrink-0 rounded-md border border-border/70 px-1 py-0.5 text-3xs text-muted-foreground">
|
||||
Setup required
|
||||
</span>
|
||||
) : null}
|
||||
</div>
|
||||
<div className="ml-auto flex min-h-6 shrink-0 items-center justify-end gap-2">
|
||||
{isDefault ? (
|
||||
<span className="rounded-md border border-primary/30 bg-primary/10 px-1 py-0.5 text-[10px] text-primary">
|
||||
<span className="rounded-md border border-primary/30 bg-primary/10 px-1 py-0.5 text-3xs text-primary">
|
||||
Default
|
||||
</span>
|
||||
) : null}
|
||||
@@ -2660,7 +2660,7 @@ export function ConnectionsSettings() {
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<span className="mt-1 block text-[11px] text-muted-foreground">
|
||||
<span className="mt-1 block text-2xs text-muted-foreground">
|
||||
Paste a full pairing URL here to fill both fields automatically.
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -169,7 +169,7 @@ export function CustomModelEditor({
|
||||
className="min-w-0 flex-1"
|
||||
aria-label="Choice label"
|
||||
/>
|
||||
<label className="flex shrink-0 items-center gap-1.5 text-[11px] text-muted-foreground">
|
||||
<label className="flex shrink-0 items-center gap-1.5 text-2xs text-muted-foreground">
|
||||
<Switch
|
||||
size="sm"
|
||||
checked={choice.isDefault}
|
||||
@@ -201,7 +201,7 @@ export function CustomModelEditor({
|
||||
className="flex flex-col gap-2 rounded-md border border-border/60 bg-background/40 p-2.5"
|
||||
>
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
<span className="w-14 shrink-0 text-[11px] text-muted-foreground">Option {index + 1}</span>
|
||||
<span className="w-14 shrink-0 text-2xs text-muted-foreground">Option {index + 1}</span>
|
||||
{presets.length > 0 ? (
|
||||
<Select
|
||||
value={idSelectValue(descriptor)}
|
||||
|
||||
@@ -94,7 +94,7 @@ function StatBlock({
|
||||
}) {
|
||||
return (
|
||||
<div className="min-w-0 border-border/60 px-4 py-3 sm:px-5">
|
||||
<div className="flex min-w-0 items-center gap-1.5 text-[11px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70">
|
||||
<div className="flex min-w-0 items-center gap-1.5 text-2xs font-medium uppercase tracking-widest text-muted-foreground/70">
|
||||
<span className="min-w-0 truncate">{label}</span>
|
||||
{tooltip ? (
|
||||
<Tooltip>
|
||||
@@ -183,7 +183,7 @@ function DiagnosticsTable({
|
||||
))}
|
||||
</colgroup>
|
||||
) : null}
|
||||
<thead className="border-b border-border/60 text-[11px] uppercase tracking-[0.08em] text-muted-foreground/70">
|
||||
<thead className="border-b border-border/60 text-2xs uppercase tracking-widest text-muted-foreground/70">
|
||||
<tr>
|
||||
{headers.map((header, index) => (
|
||||
<th
|
||||
@@ -215,7 +215,7 @@ function TraceIdCell({ traceId }: { traceId: string }) {
|
||||
<Tooltip>
|
||||
<TooltipTrigger
|
||||
render={
|
||||
<span className="min-w-0 flex-1 truncate font-mono text-[11px]">
|
||||
<span className="min-w-0 flex-1 truncate font-mono text-2xs">
|
||||
{shortenTraceId(traceId)}
|
||||
</span>
|
||||
}
|
||||
@@ -362,7 +362,7 @@ function ProcessDiagnosticsTable({
|
||||
<col className="w-[11%]" />
|
||||
<col className="w-[6%]" />
|
||||
</colgroup>
|
||||
<thead className="sticky top-0 z-10 border-b border-border/60 bg-card text-[11px] uppercase tracking-[0.08em] text-muted-foreground/70">
|
||||
<thead className="sticky top-0 z-10 border-b border-border/60 bg-card text-2xs uppercase tracking-widest text-muted-foreground/70">
|
||||
<tr>
|
||||
<th className="px-4 py-2 font-semibold sm:pl-5">Name</th>
|
||||
<th className="px-3 py-2 text-right font-semibold">CPU</th>
|
||||
@@ -588,7 +588,7 @@ function ProcessResourceHistoryTable({
|
||||
<col className="w-[16%]" />
|
||||
<col className="w-[10%]" />
|
||||
</colgroup>
|
||||
<thead className="sticky top-0 z-10 border-b border-border/60 bg-card text-[11px] uppercase tracking-[0.08em] text-muted-foreground/70">
|
||||
<thead className="sticky top-0 z-10 border-b border-border/60 bg-card text-2xs uppercase tracking-widest text-muted-foreground/70">
|
||||
<tr>
|
||||
<th className="px-4 py-2 font-semibold sm:pl-5">Process</th>
|
||||
<th className="px-3 py-2 text-right font-semibold">CPU Time</th>
|
||||
@@ -662,15 +662,15 @@ function DiagnosticsLastChecked({ checkedAt }: { checkedAt: DateTime.Utc | null
|
||||
const relative = getRelativeTimeState(checkedAt ? DateTime.formatIso(checkedAt) : null);
|
||||
|
||||
if (relative.status === "missing") {
|
||||
return <span className="text-[11px] text-muted-foreground/50">Checking</span>;
|
||||
return <span className="text-2xs text-muted-foreground/50">Checking</span>;
|
||||
}
|
||||
|
||||
if (relative.status === "invalid") {
|
||||
return <span className="text-[11px] text-muted-foreground/50">Checked unavailable</span>;
|
||||
return <span className="text-2xs text-muted-foreground/50">Checked unavailable</span>;
|
||||
}
|
||||
|
||||
return (
|
||||
<span className="text-[11px] text-muted-foreground/60">
|
||||
<span className="text-2xs text-muted-foreground/60">
|
||||
{relative.suffix ? (
|
||||
<>
|
||||
Checked <span className="font-mono tabular-nums">{relative.value}</span> {relative.suffix}
|
||||
@@ -1222,7 +1222,7 @@ export function DiagnosticsSettingsPanel() {
|
||||
<col className="w-[26%]" />
|
||||
<col className="w-[30%]" />
|
||||
</colgroup>
|
||||
<thead className="border-b border-border/60 text-[11px] uppercase tracking-[0.08em] text-muted-foreground/70">
|
||||
<thead className="border-b border-border/60 text-2xs uppercase tracking-widest text-muted-foreground/70">
|
||||
<tr>
|
||||
<th className="whitespace-nowrap px-4 py-2.5 font-semibold sm:pl-5">Time</th>
|
||||
<th className="whitespace-nowrap px-4 py-2.5 font-semibold">Level</th>
|
||||
@@ -1241,7 +1241,7 @@ export function DiagnosticsSettingsPanel() {
|
||||
{formatRelativeNoWrap(event.seenAt)}
|
||||
</td>
|
||||
<td className="px-4 py-3 align-top">
|
||||
<span className="inline-flex rounded bg-muted px-1.5 py-0.5 font-mono text-[11px] font-medium uppercase text-foreground/80">
|
||||
<span className="inline-flex rounded bg-muted px-1.5 py-0.5 font-mono text-2xs font-medium uppercase text-foreground/80">
|
||||
{event.level}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
@@ -173,9 +173,7 @@ export function FontFamilyPicker({
|
||||
{family}
|
||||
</span>
|
||||
<span className="flex shrink-0 items-center gap-1.5">
|
||||
{isDefault ? (
|
||||
<span className="text-[10px] text-muted-foreground/60">default</span>
|
||||
) : null}
|
||||
{isDefault ? <span className="text-3xs text-muted-foreground/60">default</span> : null}
|
||||
{item === selectedValue ? (
|
||||
<CheckIcon className="size-3.5 text-muted-foreground" />
|
||||
) : null}
|
||||
|
||||
@@ -255,7 +255,7 @@ function WarningTooltipIcon({
|
||||
tabIndex={focusable ? 0 : undefined}
|
||||
aria-label={label}
|
||||
className={cn(
|
||||
"inline-flex size-5 shrink-0 items-center justify-center rounded-sm text-warning outline-none transition-colors hover:bg-warning/10 focus-visible:ring-[3px] focus-visible:ring-warning/25",
|
||||
"inline-flex size-5 shrink-0 items-center justify-center rounded-sm text-warning outline-none transition-colors hover:bg-warning/10 focus-visible:ring-3 focus-visible:ring-warning/25",
|
||||
className,
|
||||
)}
|
||||
/>
|
||||
@@ -668,7 +668,7 @@ function WhenExpressionBuilder({
|
||||
) : null}
|
||||
</InputGroup>
|
||||
{parseError ? (
|
||||
<div className="flex items-center gap-1.5 text-[11px] text-destructive">
|
||||
<div className="flex items-center gap-1.5 text-2xs text-destructive">
|
||||
<CircleXIcon className="size-3.5" />
|
||||
{parseError}
|
||||
</div>
|
||||
@@ -698,7 +698,7 @@ function WhenExpressionBuilder({
|
||||
</div>
|
||||
)}
|
||||
{parseError ? (
|
||||
<div className="pointer-events-none absolute inset-0 flex items-center justify-center rounded-lg border border-destructive/30 bg-background/75 p-4 text-center text-xs text-destructive backdrop-blur-[1px]">
|
||||
<div className="pointer-events-none absolute inset-0 flex items-center justify-center rounded-lg border border-destructive/30 bg-background/75 p-4 text-center text-xs text-destructive backdrop-blur-xs">
|
||||
Fix the expression above to continue editing visually.
|
||||
</div>
|
||||
) : null}
|
||||
@@ -842,7 +842,7 @@ function KeybindingKeyControl({
|
||||
onClick={() => setDraft({ isRecording: true })}
|
||||
aria-label={`Edit shortcut for ${commandLabel(row.command)}: ${formatShortcutLabel(row.binding.shortcut)}`}
|
||||
className={cn(
|
||||
"inline-flex h-8 cursor-pointer items-center rounded-md border border-transparent px-1.5 sm:h-7 outline-none transition-colors hover:border-border/70 hover:bg-accent focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/24",
|
||||
"inline-flex h-8 cursor-pointer items-center rounded-md border border-transparent px-1.5 sm:h-7 outline-none transition-colors hover:border-border/70 hover:bg-accent focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/24",
|
||||
pillClassName,
|
||||
)}
|
||||
>
|
||||
@@ -989,7 +989,7 @@ function KeybindingRowWhen({
|
||||
}) {
|
||||
return (
|
||||
<span className="flex h-6 items-center gap-1.5">
|
||||
<span className="text-[12px] leading-none text-muted-foreground/70">When</span>
|
||||
<span className="text-xs leading-none text-muted-foreground/70">When</span>
|
||||
<WhenClauseControl
|
||||
label={commandLabel(row.command)}
|
||||
expression={editor.whenDraftExpression}
|
||||
@@ -1234,7 +1234,7 @@ function NewKeybindingSettingsRow(props: NewKeybindingProps) {
|
||||
title="New keybinding"
|
||||
description={
|
||||
<span className="flex h-6 items-center gap-1.5">
|
||||
<span className="text-[12px] leading-none text-muted-foreground/70">When</span>
|
||||
<span className="text-xs leading-none text-muted-foreground/70">When</span>
|
||||
<NewKeybindingWhen draft={draft} variables={variables} />
|
||||
</span>
|
||||
}
|
||||
@@ -1312,7 +1312,7 @@ function KeybindingsList(props: KeybindingsListProps) {
|
||||
/** Shown in the browser build only; the desktop app receives every shortcut. */
|
||||
function BrowserKeybindingNotice() {
|
||||
return (
|
||||
<div className="flex items-center gap-2 px-3 py-2.5 text-[12px] leading-[1.45] text-muted-foreground sm:px-4">
|
||||
<div className="flex items-center gap-2 px-3 py-2.5 text-xs leading-normal text-muted-foreground sm:px-4">
|
||||
<TriangleAlertIcon className="size-3.5 shrink-0 text-warning" aria-hidden />
|
||||
<span>
|
||||
Some shortcuts may be claimed by the browser before T3 Code sees them. Use the desktop app
|
||||
@@ -1488,7 +1488,7 @@ export function KeybindingsSettingsPanel() {
|
||||
const cancelAdd = useCallback(() => setIsAddingBinding(false), []);
|
||||
|
||||
const bindingsCount = (
|
||||
<span className="text-[11px] text-muted-foreground">
|
||||
<span className="text-2xs text-muted-foreground">
|
||||
{rows.length + (isAddingBinding ? 1 : 0)}{" "}
|
||||
{rows.length + (isAddingBinding ? 1 : 0) === 1 ? "binding" : "bindings"}
|
||||
</span>
|
||||
|
||||
@@ -179,7 +179,7 @@ function LicenseManifestError({ message, onRetry }: { message: string; onRetry:
|
||||
<div className="flex flex-col items-start gap-3 px-3 py-5 sm:px-4">
|
||||
<div className="flex flex-col gap-1">
|
||||
<h3 className="text-sm font-medium text-foreground">Open-source notices are unavailable</h3>
|
||||
<p className="max-w-[70ch] text-pretty text-[13px] leading-[1.45] text-muted-foreground/80">
|
||||
<p className="max-w-[70ch] text-pretty text-xs leading-normal text-muted-foreground/80">
|
||||
{message}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -5,7 +5,7 @@ import { cn } from "~/lib/utils";
|
||||
export function PanelAnimationsPreview({ durationMs }: { durationMs: number }) {
|
||||
const [panelsOpen, setPanelsOpen] = useState(true);
|
||||
const transitionClass =
|
||||
"transition-[width,height,border-width] [transition-duration:var(--preview-duration)] ease-out motion-reduce:transition-none";
|
||||
"transition-[width,height,border-width] duration-(--preview-duration) ease-out motion-reduce:transition-none";
|
||||
|
||||
return (
|
||||
<button
|
||||
|
||||
@@ -34,12 +34,12 @@ export function ProjectActionsList({
|
||||
<ScriptIcon icon={script.icon} className="size-4 shrink-0 text-muted-foreground" />
|
||||
<span className="min-w-0 truncate">{script.name}</span>
|
||||
{script.runOnWorktreeCreate ? (
|
||||
<span className="shrink-0 rounded-sm border border-border/60 px-1.5 py-px text-[11px] font-normal text-muted-foreground">
|
||||
<span className="shrink-0 rounded-sm border border-border/60 px-1.5 py-px text-2xs font-normal text-muted-foreground">
|
||||
setup
|
||||
</span>
|
||||
) : null}
|
||||
{script.previewUrl ? (
|
||||
<span className="shrink-0 rounded-sm border border-border/60 px-1.5 py-px text-[11px] font-normal text-muted-foreground max-sm:hidden">
|
||||
<span className="shrink-0 rounded-sm border border-border/60 px-1.5 py-px text-2xs font-normal text-muted-foreground max-sm:hidden">
|
||||
preview · desktop only
|
||||
</span>
|
||||
) : null}
|
||||
|
||||
@@ -118,7 +118,7 @@ describe("deriveProviderModelsForDisplay", () => {
|
||||
|
||||
expect(markup).toContain("Authenticated as");
|
||||
expect(markup).toContain('aria-label="Toggle account email visibility"');
|
||||
expect(markup).toContain("blur-[2px]");
|
||||
expect(markup).toContain("blur-xs");
|
||||
expect(markup).not.toContain("[email protected]");
|
||||
});
|
||||
it("surfaces a failed probe message in both the list row and the editor", () => {
|
||||
|
||||
@@ -570,7 +570,7 @@ export function ProviderInstanceCard({
|
||||
showBadge={Boolean(accentColor)}
|
||||
className="size-5"
|
||||
iconClassName="size-4 text-foreground/80"
|
||||
badgeClassName="right-[-0.125rem] bottom-[-0.125rem] h-3 min-w-3 px-0.5 text-[7px]"
|
||||
badgeClassName="right-[-0.125rem] bottom-[-0.125rem] h-3 min-w-3 px-0.5 text-3xs"
|
||||
/>
|
||||
) : FallbackIconComponent ? (
|
||||
<span className="inline-flex size-5 shrink-0 items-center justify-center">
|
||||
@@ -578,7 +578,7 @@ export function ProviderInstanceCard({
|
||||
</span>
|
||||
) : (
|
||||
<span
|
||||
className="inline-flex size-5 shrink-0 items-center justify-center text-[10px] font-semibold leading-none text-foreground/80"
|
||||
className="inline-flex size-5 shrink-0 items-center justify-center text-3xs font-semibold leading-none text-foreground/80"
|
||||
aria-hidden
|
||||
>
|
||||
{providerInstanceInitials(displayName)}
|
||||
@@ -655,7 +655,7 @@ export function ProviderInstanceCard({
|
||||
<span className="flex min-w-0 items-center gap-2">
|
||||
<span className="truncate text-sm font-medium text-foreground">{displayName}</span>
|
||||
{String(instanceId) !== String(instance.driver) ? (
|
||||
<code className="min-w-0 truncate rounded bg-muted/60 px-1 py-0.5 text-[10px] text-muted-foreground">
|
||||
<code className="min-w-0 truncate rounded bg-muted/60 px-1 py-0.5 text-3xs text-muted-foreground">
|
||||
{instanceId}
|
||||
</code>
|
||||
) : null}
|
||||
@@ -708,7 +708,7 @@ export function ProviderInstanceCard({
|
||||
)
|
||||
) : null}
|
||||
</span>
|
||||
<span className="mt-0.5 flex items-start gap-1.5 text-[13px] leading-[1.45] text-muted-foreground/80">
|
||||
<span className="mt-0.5 flex items-start gap-1.5 text-xs leading-normal text-muted-foreground/80">
|
||||
{statusDotNode ? (
|
||||
<span className="flex h-[1.45em] shrink-0 items-center">{statusDotNode}</span>
|
||||
) : null}
|
||||
@@ -775,7 +775,7 @@ export function ProviderInstanceCard({
|
||||
<PopoverPopup side="bottom" align="end" width="md">
|
||||
<div className="grid min-w-0 gap-3">
|
||||
<div className="grid gap-0.5">
|
||||
<p className="text-[13px] font-semibold leading-tight text-foreground">
|
||||
<p className="text-sm font-semibold leading-tight text-foreground">
|
||||
{versionAdvisory.title}
|
||||
</p>
|
||||
<p
|
||||
@@ -807,7 +807,7 @@ export function ProviderInstanceCard({
|
||||
</Button>
|
||||
) : null}
|
||||
{onRunVersionAction && updateCommand ? (
|
||||
<div className="flex items-center gap-2 text-[10px] font-medium uppercase tracking-wider text-muted-foreground">
|
||||
<div className="flex items-center gap-2 text-3xs font-medium uppercase tracking-wider text-muted-foreground">
|
||||
<span aria-hidden className="h-px flex-1 bg-border" />
|
||||
or, update manually using
|
||||
<span aria-hidden className="h-px flex-1 bg-border" />
|
||||
@@ -815,7 +815,7 @@ export function ProviderInstanceCard({
|
||||
) : null}
|
||||
{updateCommand ? (
|
||||
<div className="flex min-w-0 items-center gap-1 rounded-md border border-border/70 bg-muted/40 py-0.5 pr-0.5 pl-2">
|
||||
<code className="min-w-0 flex-1 truncate font-mono text-[11px] text-foreground">
|
||||
<code className="min-w-0 flex-1 truncate font-mono text-2xs text-foreground">
|
||||
{updateCommand}
|
||||
</code>
|
||||
<Tooltip>
|
||||
|
||||
@@ -470,19 +470,19 @@ export function ProviderModelsSection({
|
||||
<span className="flex min-w-0 items-baseline gap-2">
|
||||
<span className={cn(nameClassName, "truncate")}>{model.name}</span>
|
||||
{model.name !== model.slug ? (
|
||||
<code className="truncate font-mono text-[11px] text-muted-foreground/70">
|
||||
<code className="truncate font-mono text-2xs text-muted-foreground/70">
|
||||
{model.slug}
|
||||
</code>
|
||||
) : null}
|
||||
{model.isCustom ? (
|
||||
<span className="text-[11px] text-muted-foreground/70">custom</span>
|
||||
<span className="text-2xs text-muted-foreground/70">custom</span>
|
||||
) : null}
|
||||
</span>
|
||||
{/*
|
||||
Always a grid item so the columns line up across rows; the text
|
||||
itself drops out on phone widths where it would starve the name.
|
||||
*/}
|
||||
<span className="text-[11px] text-muted-foreground/70">
|
||||
<span className="text-2xs text-muted-foreground/70">
|
||||
{capLabels.length > 0 ? (
|
||||
<span className="hidden sm:inline">{capLabels.join(" · ")}</span>
|
||||
) : null}
|
||||
@@ -494,7 +494,7 @@ export function ProviderModelsSection({
|
||||
};
|
||||
|
||||
const groupLabel = (label: string, isFirst: boolean) => (
|
||||
<div className={cn("px-2 pb-1.5 text-[11px] text-muted-foreground", isFirst ? "pt-1" : "pt-5")}>
|
||||
<div className={cn("px-2 pb-1.5 text-2xs text-muted-foreground", isFirst ? "pt-1" : "pt-5")}>
|
||||
{label}
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -240,7 +240,7 @@ function ProviderSettingsFieldRow({
|
||||
const inputId = `${idPrefix}-${field.key}`;
|
||||
const descriptionClassName =
|
||||
variant === "dialog"
|
||||
? "text-[11px] text-muted-foreground"
|
||||
? "text-2xs text-muted-foreground"
|
||||
: "mt-1 block text-xs text-muted-foreground";
|
||||
const label = <span className="text-xs font-medium text-foreground">{field.label}</span>;
|
||||
const description = field.description ? (
|
||||
|
||||
@@ -44,8 +44,8 @@ export function RedactedSensitiveText(props: {
|
||||
<button
|
||||
type="button"
|
||||
className={cn(
|
||||
"min-w-0 cursor-pointer rounded-sm font-mono text-[11px] leading-normal transition hover:text-foreground",
|
||||
revealed ? "text-muted-foreground" : "select-none text-muted-foreground blur-[2px]",
|
||||
"min-w-0 cursor-pointer rounded-sm font-mono text-2xs leading-normal transition hover:text-foreground",
|
||||
revealed ? "text-muted-foreground" : "select-none text-muted-foreground blur-xs",
|
||||
props.className,
|
||||
)}
|
||||
onClick={() => setRevealed((current) => !current)}
|
||||
|
||||
@@ -194,7 +194,7 @@ function SourceStatusBadge({
|
||||
return (
|
||||
<span
|
||||
className={cn(
|
||||
"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-[10px] font-semibold uppercase tracking-[0.08em]",
|
||||
"inline-flex items-center gap-1.5 rounded-full border px-2.5 py-1 text-3xs font-semibold uppercase tracking-widest",
|
||||
tone === "neutral" && "border-border/70 bg-muted/45 text-muted-foreground",
|
||||
tone === "default" && "border-success/25 bg-success/10 text-success-foreground",
|
||||
tone === "warning" && "border-warning/30 bg-warning/10 text-warning-foreground",
|
||||
@@ -218,14 +218,14 @@ function SourceStatusBadge({
|
||||
function LastSampleLabel({ sampledAt }: { sampledAt: DateTime.Utc | null }) {
|
||||
useRelativeTimeTick();
|
||||
if (!sampledAt) {
|
||||
return <span className="text-[11px] text-muted-foreground/55">Waiting for sample</span>;
|
||||
return <span className="text-2xs text-muted-foreground/55">Waiting for sample</span>;
|
||||
}
|
||||
const relative = formatRelativeTime(DateTime.formatIso(sampledAt));
|
||||
if (!relative) {
|
||||
return <span className="text-[11px] text-muted-foreground/55">Waiting for sample</span>;
|
||||
return <span className="text-2xs text-muted-foreground/55">Waiting for sample</span>;
|
||||
}
|
||||
return (
|
||||
<span className="text-[11px] text-muted-foreground/60">
|
||||
<span className="text-2xs text-muted-foreground/60">
|
||||
Updated <span className="font-mono tabular-nums">{relative.value}</span>
|
||||
{relative.suffix ? ` ${relative.suffix}` : ""}
|
||||
</span>
|
||||
@@ -247,7 +247,7 @@ function IconStat({
|
||||
}) {
|
||||
return (
|
||||
<div className="group min-w-0 px-4 py-4 sm:px-5">
|
||||
<div className="flex items-center gap-2 text-[10px] font-semibold uppercase tracking-[0.11em] text-muted-foreground/70">
|
||||
<div className="flex items-center gap-2 text-3xs font-semibold uppercase tracking-widest text-muted-foreground/70">
|
||||
<span className="text-muted-foreground/55 transition-colors group-hover:text-foreground/65">
|
||||
{icon}
|
||||
</span>
|
||||
@@ -255,7 +255,7 @@ function IconStat({
|
||||
</div>
|
||||
<div
|
||||
className={cn(
|
||||
"mt-2.5 truncate font-mono text-2xl font-semibold tracking-[-0.05em] tabular-nums text-foreground",
|
||||
"mt-2.5 truncate font-mono text-2xl font-semibold tracking-tighter tabular-nums text-foreground",
|
||||
tone === "warning" && "text-warning-foreground",
|
||||
tone === "danger" && "text-destructive",
|
||||
)}
|
||||
@@ -263,7 +263,7 @@ function IconStat({
|
||||
{value}
|
||||
</div>
|
||||
{detail ? (
|
||||
<div className="mt-1.5 truncate text-[10px] text-muted-foreground/60">{detail}</div>
|
||||
<div className="mt-1.5 truncate text-3xs text-muted-foreground/60">{detail}</div>
|
||||
) : null}
|
||||
</div>
|
||||
);
|
||||
@@ -282,10 +282,10 @@ function AggregateCard({
|
||||
<div className="relative overflow-hidden border-t border-border/60 px-4 py-4 first:border-t-0 md:border-t-0 md:border-l md:first:border-l-0 sm:px-5">
|
||||
<span className={cn("absolute inset-x-5 top-0 h-0.5 rounded-full opacity-75", accentClass)} />
|
||||
<div className="flex items-center justify-between gap-3">
|
||||
<div className="text-[10px] font-semibold uppercase tracking-[0.11em] text-muted-foreground/75">
|
||||
<div className="text-3xs font-semibold uppercase tracking-widest text-muted-foreground/75">
|
||||
{label}
|
||||
</div>
|
||||
<div className="rounded-md bg-muted/55 px-1.5 py-0.5 font-mono text-[9px] tabular-nums text-muted-foreground/70">
|
||||
<div className="rounded-md bg-muted/55 px-1.5 py-0.5 font-mono text-3xs tabular-nums text-muted-foreground/70">
|
||||
{aggregate.processCount} {aggregate.processCount === 1 ? "process" : "processes"}
|
||||
</div>
|
||||
</div>
|
||||
@@ -302,7 +302,7 @@ function AggregateCard({
|
||||
function MetricPair({ label, value }: { label: string; value: string }) {
|
||||
return (
|
||||
<div className="min-w-0">
|
||||
<div className="text-[9px] font-semibold uppercase tracking-[0.08em] text-muted-foreground/45">
|
||||
<div className="text-3xs font-semibold uppercase tracking-widest text-muted-foreground/45">
|
||||
{label}
|
||||
</div>
|
||||
<div className="truncate font-mono text-xs font-medium tabular-nums text-foreground/90">
|
||||
@@ -319,8 +319,8 @@ function HealthSource({ label, health }: { label: string; health: ResourceTeleme
|
||||
return (
|
||||
<div className="flex items-start justify-between gap-4 border-t border-border/50 py-3 first:border-t-0">
|
||||
<div className="min-w-0">
|
||||
<div className="text-[13px] font-medium text-foreground">{label}</div>
|
||||
<div className="mt-1 text-[11px] leading-relaxed text-muted-foreground/65">
|
||||
<div className="text-sm font-medium text-foreground">{label}</div>
|
||||
<div className="mt-1 text-2xs leading-relaxed text-muted-foreground/65">
|
||||
{expectedInBrowser
|
||||
? "Available when this page runs inside the desktop app."
|
||||
: Option.match(health.lastError, {
|
||||
@@ -356,10 +356,10 @@ function DetailRow({
|
||||
}) {
|
||||
return (
|
||||
<div className="flex items-center justify-between gap-4 border-t border-border/50 py-2.5 first:border-t-0">
|
||||
<span className="text-[11px] text-muted-foreground/75">{label}</span>
|
||||
<span className="text-2xs text-muted-foreground/75">{label}</span>
|
||||
<span
|
||||
className={cn(
|
||||
"min-w-0 truncate text-right font-mono text-[11px] tabular-nums text-foreground/85",
|
||||
"min-w-0 truncate text-right font-mono text-2xs tabular-nums text-foreground/85",
|
||||
valueClassName,
|
||||
)}
|
||||
>
|
||||
@@ -405,7 +405,7 @@ function ResourceHistoryChart({
|
||||
|
||||
return (
|
||||
<div className="border-t border-border/60 px-4 py-4 sm:px-5">
|
||||
<div className="mb-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-[10px] text-muted-foreground/65">
|
||||
<div className="mb-3 flex flex-wrap items-center gap-x-4 gap-y-1 text-3xs text-muted-foreground/65">
|
||||
<span className="inline-flex items-center gap-1.5">
|
||||
<span className="h-1.5 w-3 rounded-full bg-foreground/70" /> CPU average
|
||||
</span>
|
||||
@@ -529,7 +529,7 @@ function ProcessActions({
|
||||
onSignal: (process: ResourceTelemetryProcess, signal: ServerProcessSignal) => void;
|
||||
}) {
|
||||
if (!canSignalProcess(process)) {
|
||||
return <span className="text-[10px] text-muted-foreground/35">—</span>;
|
||||
return <span className="text-3xs text-muted-foreground/35">—</span>;
|
||||
}
|
||||
const isSignaling = signalingKeys.has(processIdentityKey(process));
|
||||
return (
|
||||
@@ -586,7 +586,7 @@ function ProcessTable({
|
||||
<col className="w-[6%]" />
|
||||
<col className="w-[4%]" />
|
||||
</colgroup>
|
||||
<thead className="sticky top-0 z-10 border-b border-border/60 bg-card text-[10px] uppercase tracking-[0.08em] text-muted-foreground/65">
|
||||
<thead className="sticky top-0 z-10 border-b border-border/60 bg-card text-3xs uppercase tracking-widest text-muted-foreground/65">
|
||||
<tr>
|
||||
<th className="px-4 py-2 font-semibold sm:pl-5">Process</th>
|
||||
<th className="px-3 py-2 font-semibold">Category</th>
|
||||
@@ -618,7 +618,7 @@ function ProcessTable({
|
||||
onToggle={toggle}
|
||||
/>
|
||||
</td>
|
||||
<td className="truncate px-3 py-2 text-[11px] text-muted-foreground">
|
||||
<td className="truncate px-3 py-2 text-2xs text-muted-foreground">
|
||||
{categoryLabel(process.category)}
|
||||
</td>
|
||||
<td className="px-3 py-2 text-right font-mono tabular-nums">
|
||||
@@ -689,7 +689,7 @@ function HistoryProcessTable({
|
||||
<col className="w-[7%]" />
|
||||
<col className="w-[5%]" />
|
||||
</colgroup>
|
||||
<thead className="sticky top-0 z-10 border-b border-border/60 bg-card text-[10px] uppercase tracking-[0.08em] text-muted-foreground/65">
|
||||
<thead className="sticky top-0 z-10 border-b border-border/60 bg-card text-3xs uppercase tracking-widest text-muted-foreground/65">
|
||||
<tr>
|
||||
<th className="px-4 py-2 font-semibold sm:pl-5">Process</th>
|
||||
<th className="px-3 py-2 font-semibold">Category</th>
|
||||
@@ -726,7 +726,7 @@ function HistoryProcessTable({
|
||||
</TooltipPopup>
|
||||
</Tooltip>
|
||||
</td>
|
||||
<td className="truncate px-3 py-2 text-[11px] text-muted-foreground">
|
||||
<td className="truncate px-3 py-2 text-2xs text-muted-foreground">
|
||||
{categoryLabel(process.category)}
|
||||
</td>
|
||||
<td className="px-3 py-2 text-right font-mono tabular-nums">
|
||||
@@ -771,7 +771,7 @@ function AttributionTable({ entries }: { entries: ReadonlyArray<ResourceAttribut
|
||||
<col className="w-[10%]" />
|
||||
<col className="w-[12%]" />
|
||||
</colgroup>
|
||||
<thead className="border-b border-border/60 text-[10px] uppercase tracking-[0.08em] text-muted-foreground/65">
|
||||
<thead className="border-b border-border/60 text-3xs uppercase tracking-widest text-muted-foreground/65">
|
||||
<tr>
|
||||
<th className="px-4 py-2 font-semibold sm:pl-5">Component</th>
|
||||
<th className="px-3 py-2 font-semibold">Operation</th>
|
||||
@@ -983,10 +983,10 @@ export function ResourceTelemetryDiagnostics({
|
||||
</div>
|
||||
}
|
||||
>
|
||||
<div className="overflow-hidden rounded-2xl border border-border/70 bg-card shadow-[0_1px_1px_rgb(0_0_0/0.03),0_8px_30px_rgb(0_0_0/0.035)]">
|
||||
<div className="overflow-hidden rounded-2xl border border-border/70 bg-card shadow-sm/5">
|
||||
<div className="flex flex-col gap-3 border-b border-border/60 bg-linear-to-r from-muted/45 via-muted/20 to-transparent px-4 py-4 sm:flex-row sm:items-center sm:justify-between sm:px-5">
|
||||
<div>
|
||||
<div className="text-[10px] font-semibold uppercase tracking-[0.14em] text-muted-foreground/70">
|
||||
<div className="text-3xs font-semibold uppercase tracking-widest text-muted-foreground/70">
|
||||
T3 system footprint
|
||||
</div>
|
||||
<p className="mt-1 max-w-xl text-xs leading-relaxed text-muted-foreground">
|
||||
@@ -994,7 +994,7 @@ export function ResourceTelemetryDiagnostics({
|
||||
the monitor itself.
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex items-center gap-2 text-[10px] text-muted-foreground/65">
|
||||
<div className="flex items-center gap-2 text-3xs text-muted-foreground/65">
|
||||
<span className="size-1.5 rounded-full bg-success" />
|
||||
Sampling every {snapshot ? formatSampleInterval(snapshot.sampleIntervalMs) : "..."}
|
||||
</div>
|
||||
@@ -1091,9 +1091,9 @@ export function ResourceTelemetryDiagnostics({
|
||||
) : null
|
||||
}
|
||||
>
|
||||
<div className="grid overflow-hidden rounded-2xl border border-border/70 bg-card shadow-[0_1px_1px_rgb(0_0_0/0.03)] md:grid-cols-2 md:divide-x md:divide-border/60">
|
||||
<div className="grid overflow-hidden rounded-2xl border border-border/70 bg-card shadow-xs/5 md:grid-cols-2 md:divide-x md:divide-border/60">
|
||||
<div className="px-4 py-4 sm:px-5">
|
||||
<div className="mb-3 flex items-center gap-2 text-[10px] font-semibold uppercase tracking-[0.12em] text-muted-foreground/70">
|
||||
<div className="mb-3 flex items-center gap-2 text-3xs font-semibold uppercase tracking-widest text-muted-foreground/70">
|
||||
<span className="flex size-6 items-center justify-center rounded-md bg-muted/60">
|
||||
<BatteryIcon className="size-3.5" />
|
||||
</span>
|
||||
@@ -1150,10 +1150,10 @@ export function ResourceTelemetryDiagnostics({
|
||||
</>
|
||||
) : (
|
||||
<div className="rounded-xl border border-dashed border-border/70 bg-muted/20 px-4 py-5">
|
||||
<div className="text-[13px] font-medium text-foreground">
|
||||
<div className="text-sm font-medium text-foreground">
|
||||
Desktop host signals not connected
|
||||
</div>
|
||||
<p className="mt-1.5 max-w-sm text-[11px] leading-relaxed text-muted-foreground/70">
|
||||
<p className="mt-1.5 max-w-sm text-2xs leading-relaxed text-muted-foreground/70">
|
||||
Power, idle, lock, and thermal state are supplied by the desktop host. Process
|
||||
telemetry remains fully active in this browser session.
|
||||
</p>
|
||||
@@ -1161,7 +1161,7 @@ export function ResourceTelemetryDiagnostics({
|
||||
)}
|
||||
</div>
|
||||
<div className="border-t border-border/60 px-4 py-4 md:border-t-0 sm:px-5">
|
||||
<div className="mb-3 flex items-center gap-2 text-[10px] font-semibold uppercase tracking-[0.12em] text-muted-foreground/70">
|
||||
<div className="mb-3 flex items-center gap-2 text-3xs font-semibold uppercase tracking-widest text-muted-foreground/70">
|
||||
<span className="flex size-6 items-center justify-center rounded-md bg-muted/60">
|
||||
<GaugeIcon className="size-3.5" />
|
||||
</span>
|
||||
@@ -1228,7 +1228,7 @@ export function ResourceTelemetryDiagnostics({
|
||||
</div>
|
||||
}
|
||||
>
|
||||
<div className="overflow-hidden rounded-2xl border border-border/70 bg-card shadow-[0_1px_1px_rgb(0_0_0/0.03)]">
|
||||
<div className="overflow-hidden rounded-2xl border border-border/70 bg-card shadow-xs/5">
|
||||
{history.error ? (
|
||||
<div className="flex items-start gap-2 border-b border-destructive/20 bg-destructive/5 px-4 py-3 text-xs text-destructive sm:px-5">
|
||||
<AlertTriangleIcon className="mt-0.5 size-3.5 shrink-0" />
|
||||
@@ -1245,13 +1245,13 @@ export function ResourceTelemetryDiagnostics({
|
||||
icon={<CpuIcon className="size-4 text-muted-foreground" />}
|
||||
headerAction={
|
||||
snapshot ? (
|
||||
<span className="text-[10px] text-muted-foreground/55">
|
||||
<span className="text-3xs text-muted-foreground/55">
|
||||
Identity: <span className="font-mono">PID + start time</span>
|
||||
</span>
|
||||
) : null
|
||||
}
|
||||
>
|
||||
<div className="overflow-hidden rounded-2xl border border-border/70 bg-card shadow-[0_1px_1px_rgb(0_0_0/0.03)]">
|
||||
<div className="overflow-hidden rounded-2xl border border-border/70 bg-card shadow-xs/5">
|
||||
<ProcessTable
|
||||
processes={snapshot?.processes ?? []}
|
||||
signalingKeys={signalingKeys}
|
||||
@@ -1264,11 +1264,11 @@ export function ResourceTelemetryDiagnostics({
|
||||
title="Instrumented application I/O"
|
||||
icon={<DatabaseIcon className="size-4 text-muted-foreground" />}
|
||||
headerAction={
|
||||
<span className="text-[10px] text-muted-foreground/55">Logical bytes by operation</span>
|
||||
<span className="text-3xs text-muted-foreground/55">Logical bytes by operation</span>
|
||||
}
|
||||
>
|
||||
<div className="overflow-hidden rounded-2xl border border-border/70 bg-card shadow-[0_1px_1px_rgb(0_0_0/0.03)]">
|
||||
<div className="bg-muted/15 px-4 py-3 text-[11px] leading-relaxed text-muted-foreground sm:px-5">
|
||||
<div className="overflow-hidden rounded-2xl border border-border/70 bg-card shadow-xs/5">
|
||||
<div className="bg-muted/15 px-4 py-3 text-2xs leading-relaxed text-muted-foreground sm:px-5">
|
||||
Native counters identify which process is reading or writing. These application-level
|
||||
counters identify known T3 operations so process spikes can be correlated with specific
|
||||
persistence and logging paths.
|
||||
|
||||
@@ -264,7 +264,7 @@ function AboutVersionTitle() {
|
||||
return (
|
||||
<span className="inline-flex items-baseline gap-2">
|
||||
<span>Version</span>
|
||||
<code className="text-[11px] font-medium text-muted-foreground">{APP_VERSION}</code>
|
||||
<code className="text-2xs font-medium text-muted-foreground">{APP_VERSION}</code>
|
||||
</span>
|
||||
);
|
||||
}
|
||||
@@ -1368,8 +1368,8 @@ export function AppearanceSettingsPanel() {
|
||||
: "flex shrink-0 gap-1"
|
||||
}
|
||||
>
|
||||
<span className="size-2 rounded-full bg-[var(--diff-deletion)]" />
|
||||
<span className="size-2 rounded-full bg-[var(--diff-addition)]" />
|
||||
<span className="size-2 rounded-full bg-diff-deletion" />
|
||||
<span className="size-2 rounded-full bg-diff-addition" />
|
||||
</span>
|
||||
<SelectValue>
|
||||
{settings.diffColorScheme === "blue-orange" ? "Blue & orange" : "Red & green"}
|
||||
@@ -2046,7 +2046,7 @@ function LegacyFeaturesSection() {
|
||||
<section id="legacy-features" ref={targetRef} tabIndex={-1} className="space-y-2.5">
|
||||
<Collapsible open={open} onOpenChange={setOpen}>
|
||||
<CollapsibleTrigger className="group flex min-h-8 w-full items-center gap-2 px-3 sm:px-4">
|
||||
<h2 className="text-sm font-normal tracking-[-0.005em] text-foreground/70 transition-colors group-hover:text-foreground">
|
||||
<h2 className="text-sm font-normal text-foreground/70 transition-colors group-hover:text-foreground">
|
||||
Legacy features
|
||||
</h2>
|
||||
<ChevronRightIcon className="size-4 text-muted-foreground transition-transform duration-200 group-data-panel-open:rotate-90" />
|
||||
|
||||
@@ -311,7 +311,7 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) {
|
||||
<span className="block truncate text-sm font-medium text-sidebar-foreground">
|
||||
{item.title}
|
||||
</span>
|
||||
<span className="block truncate text-[11px] text-sidebar-muted-foreground/75">
|
||||
<span className="block truncate text-2xs text-sidebar-muted-foreground/75">
|
||||
{SETTINGS_SECTION_LABELS[item.to]}
|
||||
</span>
|
||||
</span>
|
||||
|
||||
@@ -268,9 +268,7 @@ export function SnapShotSetupDialog({
|
||||
permissions={[
|
||||
{
|
||||
id: "screenRecording",
|
||||
icon: (
|
||||
<MacScreenRecordingIcon className="size-8 shrink-0 drop-shadow-[0_1px_1px_#0005]" />
|
||||
),
|
||||
icon: <MacScreenRecordingIcon className="size-8 shrink-0 drop-shadow-sm" />,
|
||||
title: "Screen Recording",
|
||||
description: "Capture the window you're using.",
|
||||
granted: macPermissions.screenRecording,
|
||||
@@ -278,9 +276,7 @@ export function SnapShotSetupDialog({
|
||||
},
|
||||
{
|
||||
id: "accessibility",
|
||||
icon: (
|
||||
<MacAccessibilityIcon className="size-8 shrink-0 drop-shadow-[0_1px_1px_#0005]" />
|
||||
),
|
||||
icon: <MacAccessibilityIcon className="size-8 shrink-0 drop-shadow-sm" />,
|
||||
title: "Accessibility",
|
||||
description: includeAccessibility
|
||||
? "Include text and controls from the captured app."
|
||||
|
||||
@@ -242,8 +242,8 @@ function itemSummary({
|
||||
return (
|
||||
<span>
|
||||
{item.label} is not authenticated on this server. Sign in or configure credentials using
|
||||
the <code className="rounded bg-muted px-1 py-px text-[11px]">{item.executable}</code>{" "}
|
||||
tool on the server host to enable change request features.
|
||||
the <code className="rounded bg-muted px-1 py-px text-2xs">{item.executable}</code> tool
|
||||
on the server host to enable change request features.
|
||||
</span>
|
||||
);
|
||||
}
|
||||
@@ -294,9 +294,7 @@ function DiscoveryItemRow({
|
||||
<div className="min-w-0 flex-1 space-y-1">
|
||||
<div className="flex min-w-0 flex-wrap items-center gap-2">
|
||||
<SourceControlItemMark item={item} />
|
||||
<span className="truncate text-sm font-medium tracking-[-0.005em] text-foreground">
|
||||
{item.label}
|
||||
</span>
|
||||
<span className="truncate text-sm font-medium text-foreground">{item.label}</span>
|
||||
{version ? <code className="text-xs text-muted-foreground">{version}</code> : null}
|
||||
{isVcsNotReady(item) ? (
|
||||
<Badge variant="warning" size="sm">
|
||||
@@ -309,7 +307,7 @@ function DiscoveryItemRow({
|
||||
</Badge>
|
||||
) : null}
|
||||
</div>
|
||||
<p className="flex min-w-0 flex-wrap items-center gap-x-1 text-[13px] leading-[1.45] text-muted-foreground/80">
|
||||
<p className="flex min-w-0 flex-wrap items-center gap-x-1 text-xs leading-normal text-muted-foreground/80">
|
||||
{itemSummary({ item, auth, authAccount })}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -171,7 +171,7 @@ function ThemeColorPickerPanel({
|
||||
<div className="flex items-center justify-between border-b border-border/70 px-4 py-3">
|
||||
<div className="min-w-0">
|
||||
<p className="truncate text-xs font-semibold text-foreground">{label}</p>
|
||||
<p className="text-[11px] text-muted-foreground">Choose a color</p>
|
||||
<p className="text-2xs text-muted-foreground">Choose a color</p>
|
||||
</div>
|
||||
<span
|
||||
className="size-7 shrink-0 rounded-full shadow-sm"
|
||||
@@ -193,7 +193,7 @@ function ThemeColorPickerPanel({
|
||||
/>
|
||||
<div className="grid grid-cols-[1fr_1.2fr] gap-2">
|
||||
<label className="grid min-w-0 gap-1">
|
||||
<span className="px-1 text-[10px] font-semibold uppercase tracking-[0.08em] text-muted-foreground">
|
||||
<span className="px-1 text-3xs font-semibold uppercase tracking-widest text-muted-foreground">
|
||||
HEX
|
||||
</span>
|
||||
<span className="flex min-w-0 items-center gap-2 rounded-lg border border-input bg-background px-2 focus-within:border-ring">
|
||||
@@ -219,7 +219,7 @@ function ThemeColorPickerPanel({
|
||||
</span>
|
||||
</label>
|
||||
<label className="grid min-w-0 gap-1">
|
||||
<span className="px-1 text-[10px] font-semibold uppercase tracking-[0.08em] text-muted-foreground">
|
||||
<span className="px-1 text-3xs font-semibold uppercase tracking-widest text-muted-foreground">
|
||||
RGB
|
||||
</span>
|
||||
<span className="flex min-w-0 items-center rounded-lg border border-input bg-background px-2 focus-within:border-ring">
|
||||
@@ -323,7 +323,7 @@ export const ThemeColorField = memo(function ThemeColorField({
|
||||
<div
|
||||
className={cn(
|
||||
"flex min-h-11 min-w-0 items-center gap-2 rounded-lg px-2 py-1.5 transition-[background-color,box-shadow]",
|
||||
selected && "bg-accent/60 shadow-[inset_0_0_0_1px_var(--ring)]",
|
||||
selected && "bg-accent/60 inset-ring inset-ring-ring",
|
||||
)}
|
||||
data-theme-color-role={role}
|
||||
>
|
||||
|
||||
@@ -111,12 +111,12 @@ function ThemeJsonEditor({
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className="relative overflow-hidden rounded-xl border border-input bg-background shadow-xs/5 focus-within:border-ring focus-within:ring-[3px] focus-within:ring-ring/24">
|
||||
<div className="relative overflow-hidden rounded-xl border border-input bg-background shadow-xs/5 focus-within:border-ring focus-within:ring-3 focus-within:ring-ring/24">
|
||||
{isPlainText ? null : (
|
||||
<pre
|
||||
ref={highlightRef}
|
||||
aria-hidden
|
||||
className="pointer-events-none absolute inset-0 m-0 overflow-hidden whitespace-pre-wrap break-words p-3 font-mono text-[12px] leading-5 text-foreground"
|
||||
className="pointer-events-none absolute inset-0 m-0 overflow-hidden whitespace-pre-wrap break-words p-3 font-mono text-xs leading-5 text-foreground"
|
||||
>
|
||||
<code dangerouslySetInnerHTML={{ __html: highlightedJson }} />
|
||||
</pre>
|
||||
@@ -124,7 +124,7 @@ function ThemeJsonEditor({
|
||||
<textarea
|
||||
aria-label="Theme JSON"
|
||||
className={cn(
|
||||
"relative z-10 block min-h-44 w-full resize-y overflow-auto bg-transparent p-3 font-mono text-[12px] leading-5 caret-foreground outline-none placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground",
|
||||
"relative z-10 block min-h-44 w-full resize-y overflow-auto bg-transparent p-3 font-mono text-xs leading-5 caret-foreground outline-none placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground",
|
||||
isPlainText ? "text-foreground" : "text-transparent",
|
||||
)}
|
||||
id={id}
|
||||
@@ -438,7 +438,7 @@ export function ThemeImportDialog({
|
||||
|
||||
<div className="flex items-center gap-3" aria-hidden>
|
||||
<div className="h-px flex-1 bg-border" />
|
||||
<span className="text-muted-foreground text-[11px] uppercase tracking-wider">
|
||||
<span className="text-muted-foreground text-2xs uppercase tracking-wider">
|
||||
or import a file
|
||||
</span>
|
||||
<div className="h-px flex-1 bg-border" />
|
||||
|
||||
@@ -231,12 +231,12 @@ function ThemeLibraryCard({
|
||||
</button>
|
||||
</ThemeVariantTooltip>
|
||||
<span
|
||||
className="pointer-events-none absolute bottom-0 left-1/2 inline-flex max-w-24 -translate-x-1/2 items-center gap-1 text-[11px] font-medium text-foreground"
|
||||
className="pointer-events-none absolute bottom-0 left-1/2 inline-flex max-w-24 -translate-x-1/2 items-center gap-1 text-2xs font-medium text-foreground"
|
||||
style={{ marginLeft: rootOffsetX }}
|
||||
>
|
||||
<span className="truncate">{selected.option.label}</span>
|
||||
{options.length > 1 ? (
|
||||
<span className="shrink-0 rounded-full bg-muted px-1 text-[9px] text-muted-foreground">
|
||||
<span className="shrink-0 rounded-full bg-muted px-1 text-3xs text-muted-foreground">
|
||||
+{options.length - 1}
|
||||
</span>
|
||||
) : null}
|
||||
@@ -256,7 +256,7 @@ function ThemeLibraryCard({
|
||||
aria-label={`Use ${option.label} for ${mode} mode${optionIsActive ? ", currently active" : ""}`}
|
||||
aria-pressed={optionIsActive}
|
||||
className={cn(
|
||||
"absolute left-1/2 top-1 z-30 flex size-7 items-center justify-center rounded-full bg-background shadow-sm outline-none transition-[transform,opacity] duration-200 ease-out motion-reduce:transition-none focus-visible:ring-2 focus-visible:ring-ring",
|
||||
"absolute left-1/2 top-1 z-30 flex size-7 items-center justify-center rounded-full bg-background shadow-sm outline-none transition-[opacity,transform] duration-200 ease-out motion-reduce:transition-none focus-visible:ring-2 focus-visible:ring-ring",
|
||||
optionIsActive ? "ring-2 ring-ring" : "ring-1 ring-border/70",
|
||||
)}
|
||||
style={{
|
||||
@@ -884,12 +884,12 @@ export function ThemeLibrary({
|
||||
|
||||
return (
|
||||
<div className="space-y-3">
|
||||
<h3 className="px-3 text-sm font-normal tracking-[-0.005em] text-foreground/70 sm:px-4">
|
||||
<h3 className="px-3 text-sm font-normal text-foreground/70 sm:px-4">
|
||||
{searchableSetting("color-scheme").title}
|
||||
</h3>
|
||||
{renderModeTiles()}
|
||||
<div className="flex min-h-8 flex-wrap items-center justify-between gap-3 px-3 pt-2 sm:px-4">
|
||||
<h3 className="text-sm font-normal tracking-[-0.005em] text-foreground/70">
|
||||
<h3 className="text-sm font-normal text-foreground/70">
|
||||
{searchableSetting("theme").title}
|
||||
</h3>
|
||||
<div className="flex flex-wrap items-center justify-end gap-2">
|
||||
|
||||
@@ -66,7 +66,7 @@ function ThemeWireframePane({
|
||||
|
||||
{/* Composer */}
|
||||
<span
|
||||
className="absolute bottom-[8%] left-[26%] right-[6%] flex h-[15%] items-center justify-between rounded-md px-[2.5%]"
|
||||
className="absolute bottom-[8%] left-[26%] right-[6%] flex h-[15%] items-center justify-between rounded-md px-1"
|
||||
style={{
|
||||
backgroundColor: colors.surface,
|
||||
boxShadow: `inset 0 0 0 1px ${line}`,
|
||||
@@ -92,7 +92,7 @@ function ThemeWireframePane({
|
||||
>
|
||||
{[0, 1, 2].map((row) => (
|
||||
<span
|
||||
className="absolute left-[11%] right-[11%] flex items-center gap-[5%]"
|
||||
className="absolute left-[11%] right-[11%] flex items-center gap-1"
|
||||
key={row}
|
||||
style={{ top: `${10 + row * 30}%`, height: "20%" }}
|
||||
>
|
||||
|
||||
@@ -202,7 +202,7 @@ export function SettingsSection({
|
||||
className="flex min-h-7 items-start justify-between gap-4 px-3 sm:px-4"
|
||||
>
|
||||
<div className="min-w-0">
|
||||
<h2 className="flex min-h-7 items-center gap-2 text-sm font-normal tracking-[-0.005em] text-foreground/70">
|
||||
<h2 className="flex min-h-7 items-center gap-2 text-sm font-normal text-foreground/70">
|
||||
{icon}
|
||||
{title}
|
||||
</h2>
|
||||
@@ -228,7 +228,7 @@ export function SettingsUnavailableGroup({
|
||||
|
||||
return (
|
||||
<div className="border-border/60 bg-muted/20 py-1.5">
|
||||
<div className="flex items-start gap-2 px-3 py-2 text-[12px] leading-relaxed text-muted-foreground sm:px-4">
|
||||
<div className="flex items-start gap-2 px-3 py-2 text-xs leading-relaxed text-muted-foreground sm:px-4">
|
||||
<InfoIcon className="mt-0.5 size-3.5 shrink-0 text-warning" />
|
||||
<p>{message}</p>
|
||||
</div>
|
||||
@@ -435,7 +435,7 @@ export function SettingsRow({
|
||||
<div className="flex flex-col gap-3 @min-[32rem]/settings-row:grid @min-[32rem]/settings-row:grid-cols-[minmax(0,1fr)_minmax(10rem,auto)] @min-[32rem]/settings-row:items-center @min-[32rem]/settings-row:gap-8">
|
||||
<div className="min-w-0 flex-1 space-y-1">
|
||||
<div className="flex min-h-5 items-center gap-1.5">
|
||||
<h3 className="text-sm font-medium tracking-[-0.005em] text-foreground">{title}</h3>
|
||||
<h3 className="text-sm font-medium text-foreground">{title}</h3>
|
||||
{renderedInheritance ? (
|
||||
<span className="inline-flex h-5 w-5 shrink-0 items-center justify-center">
|
||||
{renderedInheritance}
|
||||
@@ -446,7 +446,7 @@ export function SettingsRow({
|
||||
</span>
|
||||
</div>
|
||||
{description ? (
|
||||
<p className="max-w-xl text-[13px] leading-[1.45] text-muted-foreground/80">
|
||||
<p className="max-w-xl text-xs leading-normal text-muted-foreground/80">
|
||||
{description}
|
||||
</p>
|
||||
) : null}
|
||||
|
||||
Loaded 100 of 109 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user