fix(frontend): refine editor title and section tab scrollbars
Shrink the editable assistant title in prompt/workflow editors and keep the pencil icon visible. Apply scrollbar-subtle to section anchor tabs so horizontal scrollbars match dark theme. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -157,7 +157,7 @@ export function EditableTitle({
|
|||||||
className={
|
className={
|
||||||
variant === "panel"
|
variant === "panel"
|
||||||
? "min-w-0 flex-1 border-b border-primary bg-transparent px-3 py-1.5 text-sm font-medium text-foreground outline-none"
|
? "min-w-0 flex-1 border-b border-primary bg-transparent px-3 py-1.5 text-sm font-medium text-foreground outline-none"
|
||||||
: "font-display display-sm w-[min(60vw,420px)] border-b border-primary bg-transparent text-ink outline-none"
|
: "font-display w-[min(60vw,420px)] border-b border-primary bg-transparent text-lg text-ink outline-none"
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
@@ -178,14 +178,14 @@ export function EditableTitle({
|
|||||||
className={
|
className={
|
||||||
variant === "panel"
|
variant === "panel"
|
||||||
? "truncate text-sm font-medium text-foreground"
|
? "truncate text-sm font-medium text-foreground"
|
||||||
: "font-display display-sm truncate text-ink"
|
: "font-display truncate text-lg text-ink"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{value || placeholder}
|
{value || placeholder}
|
||||||
</span>
|
</span>
|
||||||
<Pencil
|
<Pencil
|
||||||
size={variant === "panel" ? 14 : 16}
|
size={14}
|
||||||
className="shrink-0 text-muted-soft opacity-0 transition-opacity group-hover:opacity-100"
|
className="shrink-0 text-muted-soft"
|
||||||
/>
|
/>
|
||||||
</button>
|
</button>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ export function SectionAnchorTabs({
|
|||||||
return (
|
return (
|
||||||
<nav
|
<nav
|
||||||
aria-label={ariaLabel}
|
aria-label={ariaLabel}
|
||||||
className={cn("shrink-0 overflow-x-auto overscroll-none", className)}
|
className={cn("scrollbar-subtle shrink-0 overflow-x-auto overscroll-none", className)}
|
||||||
>
|
>
|
||||||
{contentClassName ? (
|
{contentClassName ? (
|
||||||
<div className={contentClassName}>{list}</div>
|
<div className={contentClassName}>{list}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user