样式优化

This commit is contained in:
2025-11-29 17:30:43 +08:00
parent 358e85be10
commit f4951c18f8
13 changed files with 91 additions and 35 deletions

View File

@@ -83,11 +83,12 @@
// 内容区域
.modal_content {
padding: 16px 20px;
padding: 0 20px;
display: flex;
flex-direction: column;
gap: 20px;
box-sizing: border-box;
margin-bottom: 20px;
.input_container {
display: flex;
@@ -127,6 +128,10 @@
line-height: 20px;
padding: 0;
}
&.profile {
width: 100%;
}
}
.char_count {
@@ -140,6 +145,7 @@
font-size: 14px;
line-height: 1.71em;
color: rgba(60, 60, 67, 0.3);
&.un-valid {
color: #FF3B30;
}
@@ -156,6 +162,7 @@
font-size: 12px;
line-height: 1.5em;
color: rgba(60, 60, 67, 0.6);
&.illegal {
color: #FF3B30;
}

View File

@@ -171,9 +171,9 @@ const EditModal: React.FC<EditModalProps> = ({
</View>
</>
) : (
<>
<View style={{display: "flex", flexDirection: "column", width: "100%", height: "120px"}}>
<Textarea
className="text_input"
className="text_input profile"
value={value}
placeholder={placeholder}
// maxlength={maxLength}
@@ -191,7 +191,7 @@ const EditModal: React.FC<EditModalProps> = ({
{value.length}/{maxLength}
</Text>
</View>
</>
</View>
)}
</View>