feat: fix

This commit is contained in:
2025-11-30 22:59:30 +08:00
parent 15d5b05587
commit 8396b5b02a
13 changed files with 157 additions and 106 deletions

View File

@@ -163,6 +163,7 @@
font-style: normal;
font-weight: 400;
line-height: 20px;
padding-right: 16px;
.atPeople {
color: rgba(255, 255, 255, 0.45);
@@ -215,7 +216,7 @@
}
.inputContainer {
height: 36px;
// height: 36px;
padding: 12px 20px;
display: flex;
align-items: center;
@@ -230,7 +231,7 @@
& > .input {
width: 100%;
height: 24px;
// height: 24px;
}
}

View File

@@ -5,7 +5,7 @@ import React, {
useRef,
useImperativeHandle,
} from "react";
import { View, Text, Image, Input } from "@tarojs/components";
import { View, Text, Image, Input, Textarea } from "@tarojs/components";
import Taro from "@tarojs/taro";
import dayjs from "dayjs";
import classnames from "classnames";
@@ -118,7 +118,7 @@ const CommentInput = forwardRef<CommentInputRef, CommentInputProps>(function (
zIndex={1002}
onClose={onClose}
style={{
height: "60px!important",
// height: "60px!important",
minHeight: "unset",
bottom:
isKeyboardVisible && keyboardHeight > 0 ? `${keyboardHeight}px` : "0",
@@ -127,7 +127,7 @@ const CommentInput = forwardRef<CommentInputRef, CommentInputProps>(function (
>
<View className={styles.inputContainer}>
<View className={styles.inputWrapper}>
<Input
<Textarea
adjustPosition={false}
ref={inputDomRef}
className={styles.input}
@@ -140,6 +140,8 @@ const CommentInput = forwardRef<CommentInputRef, CommentInputProps>(function (
onConfirm={handleSend}
focus
maxlength={100}
autoHeight
showCount
/>
</View>
<View className={styles.sendIcon} onClick={handleSend}>
@@ -318,7 +320,7 @@ export default forwardRef(function Comments(
async function markCommentAsRead() {
if (!message_id) return;
try {
await messageService.markAsRead('comment', [message_id]);
await messageService.markAsRead("comment", [message_id]);
} catch (e) {
console.error("标记评论已读失败:", e);
}

View File

@@ -63,7 +63,6 @@ function NTRPTestEntryCard(props: {
Taro.redirectTo({ url: "/main_pages/index" });
},
onCancel: () => {
Taro.navigateBack();
},
});