This commit is contained in:
张成
2025-11-15 09:43:26 +08:00
parent 53673a41b1
commit 146314f59a
5 changed files with 12 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import { useState, useEffect } from "react";
import { View, Text, ScrollView, Image, Input } from "@tarojs/components";
import { withAuth, EmptyState, GeneralNavbar } from "@/components";
import { useGlobalState } from "@/store/global";
import commentService, { CommentActivity } from "@/services/commentService";
import { formatShortRelativeTime } from "@/utils/timeUtils";
import Taro from "@tarojs/taro";
@@ -31,6 +32,8 @@ const CommentReply = () => {
const [replyTarget, setReplyTarget] = useState<CommentReplyItem | null>(null);
const [replyContent, setReplyContent] = useState("");
const [inputFocus, setInputFocus] = useState(false);
const { statusNavbarHeightInfo } = useGlobalState() || {};
const { totalHeight = 98 } = statusNavbarHeightInfo || {};
useEffect(() => {
getCommentReplyList();
@@ -295,6 +298,7 @@ const CommentReply = () => {
<ScrollView
scrollY
className="comment-scroll"
style={{ paddingTop: `${totalHeight}px` }}
scrollWithAnimation
enhanced
showScrollbar={false}