From 0d469f70bf732cd3acb88268f86c249524aaf2d2 Mon Sep 17 00:00:00 2001 From: dtoro Date: Fri, 3 Apr 2026 15:04:10 +0200 Subject: [PATCH] feat: improve styles --- .../src/components/editor/PreviewPane.tsx | 4 +- frontend/src/components/editor/ToolBar.tsx | 2 +- frontend/src/routes/DashboardView.tsx | 160 +++++++++--------- frontend/src/routes/EditorView.tsx | 4 +- 4 files changed, 85 insertions(+), 85 deletions(-) diff --git a/frontend/src/components/editor/PreviewPane.tsx b/frontend/src/components/editor/PreviewPane.tsx index 8f5b740..d40992d 100644 --- a/frontend/src/components/editor/PreviewPane.tsx +++ b/frontend/src/components/editor/PreviewPane.tsx @@ -23,8 +23,8 @@ export default function PreviewPane() { return (
-
- +
+ Preview {isDynamic && ( diff --git a/frontend/src/components/editor/ToolBar.tsx b/frontend/src/components/editor/ToolBar.tsx index d3adb35..8cd61c8 100644 --- a/frontend/src/components/editor/ToolBar.tsx +++ b/frontend/src/components/editor/ToolBar.tsx @@ -24,7 +24,7 @@ export default function ToolBar({ const navigate = useNavigate(); return ( -
+
+ New Page + +
-
{/* Table inside bordered container */} - Name - Title - Status - Size - - - - - {pages.map((p) => ( - navigate(`/editor/${p.name}`)} - > - - {p.name} - {p.name === "index" && ( - homepage - )} - - - {p.title ?? "—"} - - - - - - {p.size != null ? `${p.size} B` : "—"} - - - - e.stopPropagation()} - className="p-1 text-muted-foreground hover:text-foreground transition-colors cursor-pointer" - > - - - } - /> - - - {p.published ? ( - - ) : ( - - )} - - - - + Name + Title + Status + Size + - ))} - {pages.length === 0 && ( - - + + {pages.map((p) => ( + navigate(`/editor/${p.name}`)} > - No pages yet. Create one to get started. - - - )} - + + {p.name} + {p.name === "index" && ( + homepage + )} + + + {p.title ?? "—"} + + + + + + {p.size != null ? `${p.size} B` : "—"} + + + + e.stopPropagation()} + className="p-1 text-muted-foreground hover:text-foreground transition-colors cursor-pointer" + > + + + } + /> + + + {p.published ? ( + + ) : ( + + )} + + + + + + ))} + {pages.length === 0 && ( + + + No pages yet. Create one to get started. + + + )} +
{/* end bordered container */} diff --git a/frontend/src/routes/EditorView.tsx b/frontend/src/routes/EditorView.tsx index 56d2f96..4ec1d7e 100644 --- a/frontend/src/routes/EditorView.tsx +++ b/frontend/src/routes/EditorView.tsx @@ -206,8 +206,8 @@ function SourcePane({ return (
-
- Source +
+ Source