fix: 修复长文本编辑区域高度问题
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-01-28 11:11:57 +08:00
parent c67ace3576
commit 29f031ca61

View File

@@ -1258,30 +1258,23 @@ onMounted(() => {
.text-edit-dialog :deep(.el-dialog__body) { .text-edit-dialog :deep(.el-dialog__body) {
padding: 16px 20px; padding: 16px 20px;
height: calc(80vh - 120px);
display: flex;
flex-direction: column;
} }
.text-edit-wrapper { .text-edit-wrapper {
flex: 1; height: calc(70vh - 60px);
display: flex;
flex-direction: column;
min-height: 0;
} }
.text-edit-textarea { .text-edit-wrapper :deep(.el-textarea) {
flex: 1;
height: 100%; height: 100%;
} }
.text-edit-textarea :deep(.el-textarea__inner) { .text-edit-wrapper :deep(.el-textarea__inner) {
font-family: 'Monaco', 'Menlo', 'Consolas', monospace; font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
font-size: 13px; font-size: 14px;
line-height: 1.6; line-height: 1.7;
height: 100% !important; height: 100% !important;
min-height: 100% !important;
resize: none; resize: none;
padding: 16px;
} }
.text-edit-stats { .text-edit-stats {
@@ -1289,7 +1282,6 @@ onMounted(() => {
text-align: right; text-align: right;
color: #909399; color: #909399;
font-size: 12px; font-size: 12px;
flex-shrink: 0;
} }
/* 配置对话框优化 */ /* 配置对话框优化 */