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 ( -