rework mobile view height

This commit is contained in:
David Lechner
2021-02-01 10:26:05 -06:00
parent 3c152a48ea
commit 334668bdfb
7 changed files with 41 additions and 26 deletions
+4 -2
View File
@@ -24,10 +24,12 @@ function App(): JSX.Element {
const dispatch = useDispatch();
return (
<div className="app">
<div className="pb-app">
<Toolbar />
<SplitterLayout
customClassName={`h-body ${showDocs ? 'pb-show-docs' : 'pb-hide-docs'}`}
customClassName={`pb-app-body ${
showDocs ? 'pb-show-docs' : 'pb-hide-docs'
}`}
onDragStart={(): void => setDragging(true)}
onDragEnd={(): void => setDragging(false)}
percentage={true}
+7
View File
@@ -5,6 +5,13 @@
@import '../variables.scss';
.pb-app-body {
// height makes everything fit without scrolling
height: calc(
var(--pb-vh, 100vh) - #{$pt-navbar-height} - #{$pb-status-bar-height}
) !important;
}
.#{$ns}-dark .splitter-layout > .layout-splitter {
// make layout splitter match app color scheme
background-color: $pt-dark-app-background-color;