File tree Expand file tree Collapse file tree 4 files changed +32
-2
lines changed
Expand file tree Collapse file tree 4 files changed +32
-2
lines changed Original file line number Diff line number Diff line change @@ -26,10 +26,22 @@ body {
2626 font-family : " Exo" , sans-serif ;
2727}
2828
29+ html {
30+ width : 100vw ;
31+ height : 100vh ;
32+ }
33+
34+ body ,
35+ #root {
36+ width : 100% ;
37+ height : 100% ;
38+ }
39+
2940.context {
3041 width : 100% ;
3142 position : absolute ;
3243 display : flex ;
44+ height : 100% ;
3345 z-index : 1 ;
3446}
3547
Original file line number Diff line number Diff line change 11import "./App.scss" ;
22import BarContainer from "./components/Dashboard" ;
33
4+ function isFullScreen ( ) : boolean {
5+ let params = new URLSearchParams ( document . location . search ) ;
6+ let isFullScreen = params . get ( "fullscreen" ) === "true" ;
7+ return isFullScreen ;
8+ }
9+
410function App ( ) {
11+ const fullScreen = isFullScreen ( ) ;
12+
513 return (
6- < >
14+ < div data-fullscreen = { fullScreen ? "" : undefined } >
715 < div className = "context" >
816 < BarContainer count = { 15 } speed = { 60 } />
917 </ div >
@@ -22,7 +30,7 @@ function App() {
2230 < li > </ li >
2331 </ ul >
2432 </ div >
25- </ >
33+ </ div >
2634 ) ;
2735}
2836
Original file line number Diff line number Diff line change 55 padding : 3rem ;
66 gap : 3rem ;
77}
8+
9+ div [data-fullscreen ] .dashboard {
10+ padding : 1.5rem ;
11+ gap : 1.5rem ;
12+ justify-content : space-between ;
13+ }
Original file line number Diff line number Diff line change 2424 height : 100% ;
2525 }
2626}
27+
28+ div [data-fullscreen ] .sort-box-group {
29+ min-width : 78vw ;
30+ }
You can’t perform that action at this time.
0 commit comments