From e4aa205ab2ca3846b16f575fd2347a8494315ed8 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 1 Feb 2026 01:58:44 +0100 Subject: [PATCH] Add folder icon and update component structure --- src/App.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App.tsx b/src/App.tsx index 05e8607..90f8f1a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -10,6 +10,8 @@ import { listen } from "@tauri-apps/api/event"; import { invoke } from "@tauri-apps/api/core"; import historyIcon from "./assets/history.png"; import historyIconBright from "./assets/history_b.png"; +import folderIcon from "../src-tauri/icons/folder.png"; +import folderIconBright from "../src-tauri/icons/folder_b.png"; import { markdownToHTML } from "./markdown/markdown"; import "./markdown/markdown-render.css"; import { @@ -299,6 +301,7 @@ export default function App() { }, [statusKey]); const historyIconSrc = theme === "light" ? historyIconBright : historyIcon; + const folderIconSrc = theme === "light" ? folderIconBright : folderIcon; const lines = useMemo(() => body.split("\n"), [body]); const lineNumbers = useMemo(() => lines.map((_, index) => index + 1), [lines]); @@ -1237,7 +1240,6 @@ export default function App() { ) : (
{text.title}
)} -
Updated {formatDate(text.updated_at)}
+ {editingFolderId === folder.id ? (