Skip to content

Commit 345cfb0

Browse files
committed
优化表达式编辑器布局:1. 将变量区域的固定高度改为最大高度,以提升布局灵活性;2. 确保变量区域高度正确,避免溢出。
1 parent 95ad07c commit 345cfb0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/styles/layout.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
max-width: 320px;
1919
display: flex;
2020
flex-direction: column;
21-
max-height: 320px; // 设置固定高度
21+
height: 320px; // 修改:使用固定高度而不是 max-height
2222
min-height: 120px;
2323
margin-bottom: v.$spacing-md; // 添加底部间距
2424

@@ -34,11 +34,13 @@
3434
overflow: hidden;
3535
display: flex;
3636
flex-direction: column;
37+
height: calc(100% - 48px); // 添加:确保变量区域高度正确
3738

3839
:deep(.el-scrollbar) {
3940
height: 100%;
40-
position: absolute;
41-
inset: 0;
41+
flex: 1;
42+
display: flex;
43+
flex-direction: column;
4244

4345
.el-scrollbar__wrap {
4446
height: 100%;

0 commit comments

Comments
 (0)