Skip to content

Commit 3c35368

Browse files
committed
优化表达式编辑器布局:1. 移除变量区域的右内边距,改为右外边距;2. 在隐藏键盘时移除右外边距,以提升布局一致性。
1 parent d38ee30 commit 3c35368

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ExpressionEditor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1778,7 +1778,7 @@ onMounted(() => {
17781778
17791779
.variables-section {
17801780
border-right: 1px solid var(--editor-border);
1781-
padding-right: 16px;
1781+
margin-right: 16px; // 只保留margin-right,移除padding-right
17821782
min-width: 200px;
17831783
flex-shrink: 1;
17841784
@@ -1790,7 +1790,7 @@ onMounted(() => {
17901790
gap: 0;
17911791
.variables-section {
17921792
border-right: none;
1793-
padding-right: 0;
1793+
margin-right: 0; // 在隐藏键盘时移除右边距
17941794
}
17951795
}
17961796
}

0 commit comments

Comments
 (0)