refactor(frontend): unify list and create pages with compact topbar layout

Move resource list and guide page titles into the shared topbar, introduce ListPageLayout for tighter spacing, and align knowledge edit with the prompt editor chrome.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Eric Wang
2026-08-05 15:05:16 +08:00
co-authored by Cursor
parent b27efb2892
commit a9c70effae
9 changed files with 529 additions and 467 deletions
@@ -50,14 +50,20 @@ import type {
import type { RuntimeMode } from "./types";
export function EditorBackButton({ onClick }: { onClick: () => void }) {
export function EditorBackButton({
onClick,
ariaLabel = "返回助手列表",
}: {
onClick: () => void;
ariaLabel?: string;
}) {
return (
<Button
variant="ghost"
size="icon"
className="shrink-0 text-muted-foreground hover:text-foreground"
onClick={onClick}
aria-label="返回助手列表"
aria-label={ariaLabel}
>
<ChevronLeft size={20} />
</Button>