Skip to content

Commit ec831d5

Browse files
committed
更新 layout.scss 文件,设置变量区域最大高度为 350px;确保内容溢出时隐藏;调整 el-scrollbar 样式以适应新布局。
1 parent 56d696d commit ec831d5

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/components/styles/layout.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,26 @@
2323

2424
.variables-section {
2525
margin: 0;
26-
height: 100%;
26+
height: 350px; // 设置固定最大高度
2727
min-width: 280px; // 设置最小宽度,确保变量区域不会太窄
2828
max-width: 35%; // 限制变量区域的最大宽度
2929
padding-right: v.$spacing-xl; // 增加右侧内边距
3030
border-right: 1px solid var(--el-border-color-light); // 添加分隔线
3131
flex: 1;
3232
display: flex;
3333
flex-direction: column;
34+
overflow: hidden; // 确保内容溢出时隐藏
3435

3536
.variables {
37+
flex: 1;
38+
overflow: hidden;
39+
3640
:deep(.el-scrollbar) {
37-
max-height: 600px;
41+
height: 100%;
42+
43+
.el-scrollbar__wrap {
44+
height: 100%;
45+
}
3846
}
3947
}
4048
}
@@ -97,6 +105,7 @@
97105

98106
.el-scrollbar__wrap {
99107
overflow-x: hidden;
108+
height: 100%;
100109
}
101110

102111
.el-scrollbar__view {

0 commit comments

Comments
 (0)