From ac47eb8dbe8f75d80be1757b89290ce111f5d340 Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sat, 14 Mar 2026 00:52:40 +0000 Subject: [PATCH] fix page level comment on mobile * add icon next to comment box --- .../comment/components/comment-actions.tsx | 7 ++++- .../components/comment-list-with-tabs.tsx | 29 ++++++++++++++----- 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/apps/client/src/features/comment/components/comment-actions.tsx b/apps/client/src/features/comment/components/comment-actions.tsx index 882c6f74..c0792bc8 100644 --- a/apps/client/src/features/comment/components/comment-actions.tsx +++ b/apps/client/src/features/comment/components/comment-actions.tsx @@ -24,7 +24,12 @@ function CommentActions({ )} - diff --git a/apps/client/src/features/comment/components/comment-list-with-tabs.tsx b/apps/client/src/features/comment/components/comment-list-with-tabs.tsx index 82dd4494..022ea2fa 100644 --- a/apps/client/src/features/comment/components/comment-list-with-tabs.tsx +++ b/apps/client/src/features/comment/components/comment-list-with-tabs.tsx @@ -27,6 +27,9 @@ import { extractPageSlugId } from "@/lib"; import { useTranslation } from "react-i18next"; import { useGetSpaceBySlugQuery } from "@/features/space/queries/space-query.ts"; import { IconArrowUp, IconMessageOff } from "@tabler/icons-react"; +import { useAtom } from "jotai"; +import { currentUserAtom } from "@/features/user/atoms/current-user-atom"; +import { CustomAvatar } from "@/components/ui/custom-avatar.tsx"; function CommentListWithTabs() { const { t } = useTranslation(); @@ -345,6 +348,7 @@ const PageCommentInput = ({ onSave, isLoading }) => { const [content, setContent] = useState(""); const { ref, focused } = useFocusWithin(); const commentEditorRef = useRef(null); + const [currentUser] = useAtom(currentUserAtom); const handleSave = useCallback(() => { onSave(null, content); @@ -363,19 +367,30 @@ const PageCommentInput = ({ onSave, isLoading }) => { position: "relative", }} > - + + +
+ +
+
{focused && ( e.preventDefault()} loading={isLoading} style={{ position: "absolute", right: 8, bottom: 30 }} >