From db4b1f5fdeaaa3a37895a4bb57bc95dc80caac5e Mon Sep 17 00:00:00 2001 From: Johnny Date: Sat, 5 Jul 2025 11:26:59 +0800 Subject: [PATCH] chore: tweak styles --- .../HomeSidebar/HomeSidebarDrawer.tsx | 13 +- web/src/components/MemoContent/CodeBlock.tsx | 4 +- .../ActionButton/AddMemoRelationPopover.tsx | 8 +- .../ActionButton/LocationSelector.tsx | 25 ++- .../MemoEditor/ActionButton/MarkdownMenu.tsx | 4 +- .../MemoEditor/ActionButton/TagSelector.tsx | 4 +- .../ActionButton/UploadAttachmentButton.tsx | 4 +- .../components/MemoEditor/Editor/index.tsx | 4 +- web/src/components/MemoEditor/index.tsx | 6 +- web/src/components/MemoView.tsx | 2 +- web/src/components/Navigation.tsx | 4 +- web/src/components/NavigationDrawer.tsx | 6 +- web/src/components/ReactionView.tsx | 2 +- .../Settings/MemoRelatedSettings.tsx | 14 +- web/src/components/ui/button.tsx | 4 +- web/src/components/ui/input.tsx | 2 +- web/src/index.css | 20 ++ web/src/layouts/HomeLayout.tsx | 8 +- web/src/layouts/RootLayout.tsx | 5 +- web/src/main.tsx | 2 +- web/src/pages/Setting.tsx | 2 +- web/src/pages/UserProfile.tsx | 4 +- web/src/style.css | 187 ++++++++++-------- 23 files changed, 179 insertions(+), 155 deletions(-) create mode 100644 web/src/index.css diff --git a/web/src/components/HomeSidebar/HomeSidebarDrawer.tsx b/web/src/components/HomeSidebar/HomeSidebarDrawer.tsx index b6bd7957d..890c2e070 100644 --- a/web/src/components/HomeSidebar/HomeSidebarDrawer.tsx +++ b/web/src/components/HomeSidebar/HomeSidebarDrawer.tsx @@ -2,7 +2,7 @@ import { MenuIcon } from "lucide-react"; import { useEffect, useState } from "react"; import { useLocation } from "react-router-dom"; import { Button } from "@/components/ui/button"; -import { Sheet, SheetContent, SheetTrigger } from "@/components/ui/sheet"; +import { Sheet, SheetContent, SheetHeader, SheetTitle, SheetTrigger } from "@/components/ui/sheet"; import HomeSidebar from "./HomeSidebar"; const HomeSidebarDrawer = () => { @@ -16,12 +16,15 @@ const HomeSidebarDrawer = () => { return ( - - - + + + + + ); diff --git a/web/src/components/MemoContent/CodeBlock.tsx b/web/src/components/MemoContent/CodeBlock.tsx index 64161a867..68cc5fa7c 100644 --- a/web/src/components/MemoContent/CodeBlock.tsx +++ b/web/src/components/MemoContent/CodeBlock.tsx @@ -59,8 +59,8 @@ const CodeBlock: React.FC = ({ language, content }: Props) => { }, [content]); return ( -
-
+
+
{formatedLanguage}
diff --git a/web/src/components/MemoEditor/ActionButton/AddMemoRelationPopover.tsx b/web/src/components/MemoEditor/ActionButton/AddMemoRelationPopover.tsx index 7e271baad..e6ec6d270 100644 --- a/web/src/components/MemoEditor/ActionButton/AddMemoRelationPopover.tsx +++ b/web/src/components/MemoEditor/ActionButton/AddMemoRelationPopover.tsx @@ -132,8 +132,8 @@ const AddMemoRelationPopover = (props: Props) => { return ( - @@ -166,7 +166,9 @@ const AddMemoRelationPopover = (props: Props) => { />
{filteredMemos.length === 0 ? ( -
{isFetching ? "Loading..." : t("reference.no-memos-found")}
+
+ {isFetching ? "Loading..." : t("reference.no-memos-found")} +
) : ( filteredMemos.map((memo) => (
{ return ( - + {props.location ? ( + + ) : ( + + )}
@@ -133,7 +131,6 @@ const LocationSelector = (props: Props) => { diff --git a/web/src/components/MemoEditor/ActionButton/TagSelector.tsx b/web/src/components/MemoEditor/ActionButton/TagSelector.tsx index 78d02a156..3fe4644f4 100644 --- a/web/src/components/MemoEditor/ActionButton/TagSelector.tsx +++ b/web/src/components/MemoEditor/ActionButton/TagSelector.tsx @@ -35,8 +35,8 @@ const TagSelector = observer((props: Props) => { return ( - diff --git a/web/src/components/MemoEditor/ActionButton/UploadAttachmentButton.tsx b/web/src/components/MemoEditor/ActionButton/UploadAttachmentButton.tsx index 5e9b9aeeb..d5ab68f74 100644 --- a/web/src/components/MemoEditor/ActionButton/UploadAttachmentButton.tsx +++ b/web/src/components/MemoEditor/ActionButton/UploadAttachmentButton.tsx @@ -73,8 +73,8 @@ const UploadAttachmentButton = observer((props: Props) => { const isUploading = state.uploadingFlag || props.isUploading; return ( -