From 889bd8d4fdc7f49914339d01bc7316773401fb97 Mon Sep 17 00:00:00 2001 From: Thomas Gauvin <35609369+thomasgauvin@users.noreply.github.com> Date: Sat, 25 May 2024 23:56:31 -0400 Subject: [PATCH] =?UTF-8?q?Fixed=20UI=20(padding,=20margin,=20main=20conte?= =?UTF-8?q?nt)=20=E2=9C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\342\234\205 Todo list.md" | 51 +++++++++++++++---- .../FileSystem/LocalFileSystem.tsx | 2 +- .../FileSystem/WorkspaceSelector.tsx | 2 +- .../RemirrorCustomToolbar.tsx | 9 ++-- src/components/ui/ResizableSidebar.tsx | 9 ++-- src/pages/Editor.tsx | 1 + tailwind.config.js | 17 +++++-- 7 files changed, 65 insertions(+), 26 deletions(-) diff --git "a/sample-markdown-folder/\342\234\205 Todo list.md" "b/sample-markdown-folder/\342\234\205 Todo list.md" index 0edc62d..93051b2 100644 --- "a/sample-markdown-folder/\342\234\205 Todo list.md" +++ "b/sample-markdown-folder/\342\234\205 Todo list.md" @@ -82,34 +82,63 @@ * Add new folder/new file to tree viewer β -* Make it so that you can start editing and save later (maybe make it a zip on unsupported devices) +* Make the UI have resizable side bar β -* Make it mobile UI responsive <-- π‘β¬ οΈ +* Fix styling to have less spacing between sections, paragraphs, overall polish (make it look like Brian Lovin) β -* After entering the title, click enter, and then it deselects, kinda annoying (upon note creation) +* Make it mobile UI responsive (useless since not supported on mobile) βΈοΈ + +* Make it so that you can start editing and save later (maybe make it a zip on unsupported devices (no, just don't support unsupported devices)) + +* Reduce the spacing between lines (way too much spacing!) β + +* Make the side bar resizable β + +* Reorder pages with [https://atlaskit.atlassian.com/packages/confluence/tree](https://atlaskit.atlassian.com/packages/confluence/tree) or [https://ant.design/components/tree#components-tree-demo-draggable](https://ant.design/components/tree#components-tree-demo-draggable) + +* Fix UI (padding, margin, main content) β + +* Click is imperfect on open sidebar β + +* Sometimes content spills over β + +* Fix centering of toolbar β + +* Show browser support (check out [https://github.com/use-strict/file-system-access/tree/master](https://github.com/use-strict/file-system-access/tree/master) (didn't work and mobile experience is poor)) + +* Allow the ability to have multiple notes open at once βΈοΈ + +* \--> SHIP ### P1 -* Have the UI have top level folders as sections - * Support ignoring frontmatter β -* Add support for Google Drive, GitHub syncing - -* Autocomplete with Bring your own OpenAI key (or Ollama integration) +* Add styling customizability * Export to website (static site generation) + +### P2 + +* Add Google Drive + +* Support ignoring frontmatter β + * add support to add links within the project βΈοΈ * hide folder create/delete until hover of item βΈοΈ * add lots of CSS transitions βΈοΈ -* Make the UI have resizable side bar +* Have the UI have top level folders as sections + +* Custom links -### P2 +### P3 -* Add electron app for desktop, no notifications, and support for browsers that don't work \ No newline at end of file +* Add electron app for desktop, no notifications, and support for browsers that don't work + +* Autocomplete with Bring your own OpenAI key (or Ollama integration) \ No newline at end of file diff --git a/src/components/FileSystemAdapters/FileSystem/LocalFileSystem.tsx b/src/components/FileSystemAdapters/FileSystem/LocalFileSystem.tsx index d301155..ca1b7e9 100644 --- a/src/components/FileSystemAdapters/FileSystem/LocalFileSystem.tsx +++ b/src/components/FileSystemAdapters/FileSystem/LocalFileSystem.tsx @@ -186,7 +186,7 @@ export const LocalFileSystem = ({ className={`bg-zinc-50 overflow-y-scroll ${ hidden ? "hidden" : "" } - h-full scrollbar scrollbar-thumb-zinc-200 scrollbar-track-zinc-100 scrollbar-thin scrollbar-thumb-rounded-full scrollbar-track-rounded-full + w-full h-full scrollbar scrollbar-thumb-zinc-200 scrollbar-track-zinc-100 scrollbar-thin scrollbar-thumb-rounded-full scrollbar-track-rounded-full `} > {selectedDirectory && ( diff --git a/src/components/FileSystemAdapters/FileSystem/WorkspaceSelector.tsx b/src/components/FileSystemAdapters/FileSystem/WorkspaceSelector.tsx index fcb31ae..2f8d74c 100644 --- a/src/components/FileSystemAdapters/FileSystem/WorkspaceSelector.tsx +++ b/src/components/FileSystemAdapters/FileSystem/WorkspaceSelector.tsx @@ -69,7 +69,7 @@ export function WorkspaceSelector({
-