Skip to content

Commit 57fb28d

Browse files
authored
feat: 顶部操作栏自适应换行 (#991)
1 parent 485dc3a commit 57fb28d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sass/cherry.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@
184184
.cherry-toolbar {
185185
position: relative;
186186
display: flex;
187-
// align-items: center;
187+
align-items: baseline;
188188
justify-content: space-between;
189189
padding: 0 20px;
190-
height: $toolbarHeight;
190+
min-height: $toolbarHeight;
191191
font-size: $toolbarFontSize;
192192
line-height: 2.8;
193193
flex-basis: 100%;
@@ -237,12 +237,12 @@
237237
.toolbar-right {
238238
display: flex;
239239
align-items: center;
240-
height: $toolbarHeight;
241-
overflow: hidden;
240+
min-height: $toolbarHeight;
241+
flex-wrap: wrap;
242+
flex: 1;
242243
}
243244

244245
.toolbar-left {
245-
flex: 0 0 auto;
246246
margin-right: 20px;
247247
}
248248

0 commit comments

Comments
 (0)