1
This commit is contained in:
@@ -17,7 +17,8 @@
|
||||
|
||||
// 评论列表滚动区域
|
||||
.comment-scroll {
|
||||
height: calc(100vh - 100px);
|
||||
flex: 1;
|
||||
height: 0;
|
||||
padding: 0 15px;
|
||||
box-sizing: border-box;
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user