Skip to content

Commit d77e797

Browse files
committed
优化表达式编辑器布局:1. 在水平布局中移除变量区域的右内边距,添加左边距;2. 设置布局间距和对齐方式,以提升整体一致性。
1 parent 76272a0 commit d77e797

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/components/ExpressionEditor.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1775,22 +1775,25 @@ onMounted(() => {
17751775
17761776
&.horizontal-layout {
17771777
flex-direction: row;
1778+
gap: 0;
1779+
display: flex;
1780+
align-items: flex-start;
17781781
17791782
.variables-section {
17801783
border-right: 1px solid var(--editor-border);
1781-
margin-right: 16px; // 只保留margin-right,移除padding-right
17821784
min-width: 200px;
17831785
flex-shrink: 1;
1784-
1785-
// 在水平布局时设置最大高度
17861786
max-height: 600px;
17871787
}
17881788
1789+
.calculator {
1790+
margin-left: 12px; // 只在虚拟键盘上添加最小的左边距
1791+
flex-shrink: 0;
1792+
}
1793+
17891794
&.hide-keyboard {
1790-
gap: 0;
17911795
.variables-section {
17921796
border-right: none;
1793-
margin-right: 0; // 在隐藏键盘时移除右边距
17941797
}
17951798
}
17961799
}

0 commit comments

Comments
 (0)