fix: 1.添加部分ant-design组件的全局样式的覆盖。
2. 修复聊天框文本溢出的问题。
This commit is contained in:
@@ -215,7 +215,7 @@ export default function ChatInput({
|
||||
placeholder={placeholder}
|
||||
disabled={disabled}
|
||||
autoSize={{ minRows: 1, maxRows: 6 }}
|
||||
className="chat-input-textarea"
|
||||
className="chat-input-textarea focus:outline-0 focus:outline-offset-0 focus:shadow-none focus:border-none"
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -391,7 +391,7 @@ export default function ContractDraftPage() {
|
||||
messageService.show({
|
||||
type: 'warning',
|
||||
title: '确认返回',
|
||||
message: '确定要返回吗?未保存的更改将丢失。',
|
||||
message: '确定要返回吗?所有已更改的内容将会丢失。',
|
||||
confirmText: '确定返回',
|
||||
cancelText: '取消',
|
||||
onConfirm: () => {
|
||||
|
||||
@@ -29,8 +29,6 @@
|
||||
|
||||
.chat-input-textarea-wrapper {
|
||||
flex: 1;
|
||||
min-height: 40px;
|
||||
max-height: 120px;
|
||||
margin: 0 8px;
|
||||
}
|
||||
|
||||
@@ -40,8 +38,6 @@
|
||||
box-shadow: none !important;
|
||||
padding: 8px 0 !important;
|
||||
background: transparent !important;
|
||||
min-height: 40px;
|
||||
max-height: 120px;
|
||||
}
|
||||
|
||||
.chat-input-button {
|
||||
@@ -83,13 +79,10 @@
|
||||
|
||||
.chat-input-textarea-wrapper {
|
||||
margin: 0 4px;
|
||||
min-height: 36px;
|
||||
max-height: 100px;
|
||||
}
|
||||
|
||||
.chat-input-textarea {
|
||||
min-height: 36px;
|
||||
max-height: 100px;
|
||||
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@@ -109,13 +102,9 @@
|
||||
|
||||
.chat-input-textarea-wrapper {
|
||||
margin: 0 2px;
|
||||
min-height: 32px;
|
||||
max-height: 80px;
|
||||
}
|
||||
|
||||
.chat-input-textarea {
|
||||
min-height: 32px;
|
||||
max-height: 80px;
|
||||
font-size: 13px;
|
||||
padding: 6px 0 !important;
|
||||
}
|
||||
|
||||
+7
-1
@@ -106,6 +106,11 @@
|
||||
border-color: #00684a;
|
||||
box-shadow: 0 0 0 2px rgba(0, 104, 74, 0.1);
|
||||
}
|
||||
|
||||
.ant-input:focus,
|
||||
.ant-input:active,
|
||||
.ant-input-outlined:focus-within,
|
||||
.ant-select-focused,
|
||||
.ant-select:active,
|
||||
.ant-select:hover{
|
||||
outline: none;
|
||||
@@ -113,8 +118,9 @@
|
||||
border-color: #00684a;
|
||||
box-shadow: 0 0 0 2px rgba(0, 104, 74, 0.1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* 组件相关样式 */
|
||||
|
||||
Reference in New Issue
Block a user