diff --git a/web/src/pages/MemoDetail.tsx b/web/src/pages/MemoDetail.tsx
index 674aabda..2e600bca 100644
--- a/web/src/pages/MemoDetail.tsx
+++ b/web/src/pages/MemoDetail.tsx
@@ -3,7 +3,6 @@ import copy from "copy-to-clipboard";
import { useEffect, useState } from "react";
import { toast } from "react-hot-toast";
import { Link, useParams } from "react-router-dom";
-import FloatingNavButton from "@/components/FloatingNavButton";
import Icon from "@/components/Icon";
import Memo from "@/components/Memo";
import MemoContentV1 from "@/components/MemoContentV1";
@@ -11,6 +10,7 @@ import MemoEditor from "@/components/MemoEditor";
import showMemoEditorDialog from "@/components/MemoEditor/MemoEditorDialog";
import MemoRelationListView from "@/components/MemoRelationListView";
import MemoResourceListView from "@/components/MemoResourceListView";
+import MobileHeader from "@/components/MobileHeader";
import showShareMemoDialog from "@/components/ShareMemoDialog";
import UserAvatar from "@/components/UserAvatar";
import VisibilityIcon from "@/components/VisibilityIcon";
@@ -110,120 +110,117 @@ const MemoDetail = () => {
};
return (
- <>
-
-
- {memo.parent && (
-
-
-
- #{memo.parent.id}
- {memo.parent.content}
-
-
- )}
-
- {getDateTimeString(memo.displayTs)}
-
-
-
-
-
-
-
- #{memo.id}
-
-
-
-
-
-
- {creator?.nickname}
-
-
-
- {allowEdit && (
- <>
-
- }
- onChange={(_, visibility) => {
- if (visibility) {
- handleMemoVisibilityOptionChanged(visibility);
- }
- }}
- >
- {VISIBILITY_SELECTOR_ITEMS.map((item) => (
-
- ))}
-
- >
- )}
-
-
- {allowEdit && (
-
-
-
-
-
- )}
-
-
-
-
-
-
- showShareMemoDialog(memo)}>
-
-
-
-
+
+
+
+ {memo.parent && (
+
+
+
+ #{memo.parent.id}
+ {memo.parent.content}
+
+ )}
+
+ {getDateTimeString(memo.displayTs)}
-
-
- {comments.length === 0 ? (
-
-
-
{t("memo.comment.no-comment")}
-
- ) : (
+
+
+
+
+
+
+ #{memo.id}
+
+
+
+
+
+
+ {creator?.nickname}
+
+
+
+ {allowEdit && (
<>
-
-
- {t("memo.comment.self")}
- ({comments.length})
-
- {comments.map((comment) => (
-
- ))}
+
+
}
+ onChange={(_, visibility) => {
+ if (visibility) {
+ handleMemoVisibilityOptionChanged(visibility);
+ }
+ }}
+ >
+ {VISIBILITY_SELECTOR_ITEMS.map((item) => (
+
+ ))}
+
>
)}
-
- {/* Only show comment editor when user login */}
- {currentUser && (
-
+
+
+ {allowEdit && (
+
+
+
+
+
)}
+
+
+
+
+
+
+ showShareMemoDialog(memo)}>
+
+
+
-
+
+
+
+ {comments.length === 0 ? (
+
+
+
{t("memo.comment.no-comment")}
+
+ ) : (
+ <>
+
+
+ {t("memo.comment.self")}
+ ({comments.length})
+
+ {comments.map((comment) => (
+
+ ))}
+ >
+ )}
-
- >
+ {/* Only show comment editor when user login */}
+ {currentUser && (
+
+ )}
+
+
+
);
};
diff --git a/web/src/pages/UserProfile.tsx b/web/src/pages/UserProfile.tsx
index d5abc8a9..3315e36b 100644
--- a/web/src/pages/UserProfile.tsx
+++ b/web/src/pages/UserProfile.tsx
@@ -1,8 +1,8 @@
import { useEffect, useState } from "react";
import { toast } from "react-hot-toast";
import { useParams } from "react-router-dom";
-import FloatingNavButton from "@/components/FloatingNavButton";
import MemoList from "@/components/MemoList";
+import MobileHeader from "@/components/MobileHeader";
import UserAvatar from "@/components/UserAvatar";
import useLoading from "@/hooks/useLoading";
import { useUserV1Store } from "@/store/v1";
@@ -35,34 +35,31 @@ const UserProfile = () => {
}, [params.username]);
return (
- <>
-
-
- {!loadingState.isLoading &&
- (user ? (
- <>
-
-
-
-
-
+
+
+
+ {!loadingState.isLoading &&
+ (user ? (
+ <>
+
+
- >
- ) : (
- <>
-
Not found
- >
- ))}
-
-
-
-
- >
+
+ >
+ ) : (
+ <>
+ Not found
+ >
+ ))}
+
+
);
};