refactor(ckbox): 调整样式和清理无用代码

- 删除未使用的MessageEnter组件
- 修复样式文件中缩进不一致问题
- 移除ChatWindow中未使用的store引用
- 调整消息输入框的行数设置
This commit is contained in:
超级老白兔
2025-09-02 12:00:31 +08:00
parent 316a237297
commit 97bb1c1fa9
3 changed files with 10 additions and 12 deletions

View File

@@ -43,7 +43,6 @@ import {
WebSocketMessage,
} from "@/store/module/websocket/websocket";
import { formatWechatTime } from "@/utils/common";
import { useCkChatStore } from "@/store/module/ckchat/ckchat";
import Person from "./components/Person";
const { Header, Content, Footer } = Layout;
const { TextArea } = Input;
@@ -967,8 +966,8 @@ const ChatWindow: React.FC<ChatWindowProps> = ({
onChange={e => setInputValue(e.target.value)}
onKeyDown={handleKeyPress}
placeholder="输入消息..."
autoSize={{ minRows: 1, maxRows: 4 }}
className={styles.messageInput}
autoSize={{ minRows: 2, maxRows: 6 }}
/>
<Button
type="primary"

View File

@@ -15,16 +15,16 @@
}
.verticalSider {
background: #2e2e2e;
border-right: 1px solid #3a3a3a;
overflow: hidden;
}
background: #2e2e2e;
border-right: 1px solid #3a3a3a;
overflow: hidden;
}
.sider {
background: #fff;
border-right: 1px solid #f0f0f0;
overflow: auto;
}
.sider {
background: #fff;
border-right: 1px solid #f0f0f0;
overflow: auto;
}
.sidebar {
height: 100%;
@@ -110,7 +110,6 @@
background: #f5f5f5;
display: flex;
flex-direction: column;
padding: 16px;
overflow: auto;
.chatContainer {