Skip to content

Commit 5bf33ec

Browse files
authored
fix(menu): only hide expander button and show button on (small) desktop (#1303)
1 parent 67a29dd commit 5bf33ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

web/editor_ui.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,11 @@ export class MainUI {
299299
}}
300300
actionButtons={[
301301
// Vertical menu button
302-
...(viewState.isMobile &&
303-
viewState.config.mobileMenuStyle.includes("hamburger"))
302+
...(viewState.config.mobileMenuStyle.includes("hamburger"))
304303
? [{
305304
icon: featherIcons.MoreVertical,
306305
description: "Open Menu",
306+
class: "expander",
307307
callback:
308308
() => {/* nothing to do, menu opens on hover/mobile click */},
309309
}]

web/styles/top.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
flex: 0 0 auto;
7373
text-align: right;
7474

75-
&.hamburger button:first-of-type {
75+
&.hamburger button.expander {
7676
display: none;
7777
}
7878
}
@@ -131,7 +131,7 @@
131131
}
132132

133133
button {
134-
&:first-of-type {
134+
&.expander {
135135
display: initial;
136136
}
137137

0 commit comments

Comments
 (0)