File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 60
60
display : flex ;
61
61
flex-direction : column ;
62
62
gap : v .$spacing-xs ;
63
- height : 320px ; // 固定高度
63
+ height : 320px ;
64
64
margin : 0 auto ;
65
- overflow : hidden ;
66
65
transition : all 0.3s ease ;
67
66
68
67
@media (max-width : 768px ) {
93
92
flex : 1 ;
94
93
min-height : 0 ; // 允许元素在flex布局中收缩
95
94
position : relative ;
96
- overflow : hidden ;
97
- max-height : calc (100% - 50px ); // 减去搜索框的高度和间距
98
- padding-right : v .$spacing-md ; // 减小右侧padding,因为scrollbar已经占据了一定空间
99
95
display : flex ; // 添加 flex 布局
100
96
flex-direction : column ; // 垂直方向布局
101
97
102
98
:deep (.el-scrollbar ) {
103
- height : 100 % ; // 确保高度占满容器
99
+ flex : 1 ; // 确保高度占满容器
104
100
min-height : 0 ; // 允许内容区域收缩
105
101
106
102
.el-scrollbar__wrap {
107
103
overflow-x : hidden ;
108
- height : 100% ;
109
104
}
110
105
111
106
.el-scrollbar__view {
112
107
padding : v .$spacing-md ;
113
108
display : flex ;
114
109
flex-direction : column ;
115
110
gap : v .$spacing-xs ;
111
+
112
+ button {
113
+ margin-right : v .$spacing-xs ; // 确保按钮右边有足够空间显示边框
114
+ }
116
115
}
117
116
}
118
117
You can’t perform that action at this time.
0 commit comments