Skip to content

Commit b7adcef

Browse files
committed
优化表达式编辑器布局:1. 移除整体过渡动画,避免影响初始渲染;2. 添加最小宽度以确保变量区域初始渲染正确。
1 parent ca75d21 commit b7adcef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/styles/layout.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
padding: 0 v.$spacing-lg;
1010
flex-direction: column;
1111
align-items: center;
12-
transition: all 0.3s ease;
12+
transition: none; // 移除整体过渡动画,避免影响初始渲染
1313
margin-top: v.$spacing-xs;
1414

1515
&:not(.horizontal-layout) {
@@ -130,13 +130,14 @@
130130
}
131131

132132
.variables-section {
133-
width: 320px;
133+
width: 320px; // 保持固定宽度
134+
min-width: 320px; // 添加最小宽度确保初始渲染正确
134135
display: flex;
135136
flex-direction: column;
136137
gap: v.$spacing-xs;
137138
margin: 0 auto;
138139
padding-right: v.$spacing-xs; // 添加右侧内边距
139-
transition: all 0.3s ease;
140+
transition: none; // 移除过渡动画
140141

141142
.variables-search {
142143
flex: 0 0 auto;

0 commit comments

Comments
 (0)