mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
rework mobile view height
This commit is contained in:
+4
-2
@@ -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}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user