File tree Expand file tree Collapse file tree 7 files changed +19
-52
lines changed
Expand file tree Collapse file tree 7 files changed +19
-52
lines changed Original file line number Diff line number Diff line change 3838 top : 0px ;
3939 // FIXME: this should be a variable
4040 left : 47px ;
41- height : 100% ;
41+ height : calc ( 100% - pb . $status-bar-height ) ;
4242 z-index : bp .$pt-z-index-overlay ;
4343 }
4444 }
Original file line number Diff line number Diff line change 1616 width : 100% ;
1717 height : 100% ;
1818 background-color : bp .$pt-app-background-color ;
19+ display : flex ;
20+ flex-direction : column ;
1921
2022 .#{bp .$ns } -dark & {
2123 background-color : bp .$pt-dark-app-background-color ;
5254}
5355
5456.pb-app-body {
55- // height makes everything fit without scrolling
56- height : calc ( var ( --pb-vh , 100 vh ) - #{ pb . $status-bar-height } ) !important ;
57- position : relative ;
57+ min- height: 0 ;
58+ flex : 1 1 auto ;
59+
5860 display : flex ;
5961 flex-direction : row ;
6062
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1212@use ' variables' as pb ;
1313@use ' @blueprintjs/core/lib/scss/variables' as bp ;
1414
15- :root {
16- --pb-vh : 100vh ;
17- }
18-
1915// use :focus-visible instead of :focus (so we don't need blueprint.js focus style manager)
2016
2117:focus {
@@ -48,6 +44,19 @@ body {
4844 // no scrolling of the page
4945 overflow : hidden ;
5046 user-select : none ;
47+ width : 100% ;
48+ height : 100% ;
49+ position : absolute ;
50+ }
51+
52+ #root {
53+ width : 100% ;
54+ height : 100% ;
55+
56+ & [data-overlay-container ] {
57+ width : 100% ;
58+ height : 100% ;
59+ }
5160}
5261
5362// Utility classes - do not use these in new code!
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ import { createLogger } from 'redux-logger';
1313import createSagaMiddleware from 'redux-saga' ;
1414import App from './app/App' ;
1515import { appVersion } from './app/constants' ;
16- import ViewHeightSensor from './components/ViewHeightSensor' ;
1716import { db } from './fileStorage/context' ;
1817import { i18nManager } from './i18n' ;
1918import { rootReducer } from './reducers' ;
@@ -95,7 +94,6 @@ ReactDOM.render(
9594 < React . StrictMode >
9695 < Provider store = { store } >
9796 < I18nContext . Provider value = { i18nManager } >
98- < ViewHeightSensor />
9997 < OverlayProvider >
10098 < HotkeysProvider >
10199 < App />
Original file line number Diff line number Diff line change 77@use ' ../variables' as pb ;
88
99.pb-status-bar {
10- position : fixed ;
11- top : calc (var (--pb-vh , 100vh ) - #{pb .$status-bar-height } );
1210 background-color : pb .$pybricks-blue ;
1311 height : pb .$status-bar-height ;
1412 width : 100vw ;
You can’t perform that action at this time.
0 commit comments