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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user