refactor(ckbox): 调整样式和清理无用代码
- 删除未使用的MessageEnter组件 - 修复样式文件中缩进不一致问题 - 移除ChatWindow中未使用的store引用 - 调整消息输入框的行数设置
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user