Skip to content

Commit 749b4df

Browse files
adamcarhedenMarkusBordihn
authored andcommitted
Fixed hidden toolbars @ width < 1024px (#151)
MDL hides headers and footers (which we use for the toolbars and infobars) at screen widths < 1024. But this simply leaves unused whitespace at the bottom of the screen in CwC. These CSS changes override that MLD behavior.
1 parent 8498b4f commit 749b4df

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

src/ui/blockly/toolbar/blockly_toolbar.gss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#{$prefix}blockly-toolbar {
1818
min-height: 34px;
19+
display: flex !important;
1920
}
2021

2122
#{$prefix}blockly-toolbar > .mdl-layout__header-row {
@@ -24,4 +25,4 @@
2425

2526
#{$prefix}blockly-toolbar > .mdl-layout__header-row .mdl-navigation__link {
2627
padding: 0 5px;
27-
}
28+
}

src/ui/editor/infobar/editor_infobar.gss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
background: #f5f5f5;
2121
border-top: 1px solid #e5e5e5;
2222
border-bottom: 1px solid #ebebeb;
23+
display: flex !important;
2324
}
2425

2526
#{$prefix}editor-infobar .goog-menu-button {

src/ui/editor/toolbar/editor_toolbar.gss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
*/
1616

1717

18+
#{$prefix}editor-toolbar {
19+
display: flex !important;
20+
}
1821
#{$prefix}editor-toolbar > .mdl-layout__header-row {
1922
height: 34px;
2023
}

src/ui/preview/infobar/preview_infobar.gss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
*/
1616

1717

18+
#{$prefix}preview-infobar {
19+
display: flex !important;
20+
}
1821
.{$prefix}preview-infobar-num {
1922
position: absolute;
2023
right: 0;

src/ui/preview/toolbar/preview_toolbar.gss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#{$prefix}preview-toolbar {
1919
flex: 0 1 auto;
2020
min-height: 34px;
21+
display: flex !important;
2122
}
2223

2324
#{$prefix}preview-toolbar > .mdl-layout__header-row {

0 commit comments

Comments
 (0)