@@ -260,17 +260,39 @@ export default function App(): ReactElement {
260260 ] ;
261261
262262 return (
263- < div style = { { display : 'flex' , width : '100vw' , height : '100vh' , overflow : 'hidden' } } >
264- < div
263+ < div
264+ style = { {
265+ display : 'grid' ,
266+ gridTemplateColumns : 'minmax(0, 1fr) 260px' ,
267+ width : '100vw' ,
268+ height : '100vh'
269+ } }
270+ >
271+ < div style = { { minWidth : 0 , position : 'relative' , overflow : 'hidden' } } >
272+ < DeckGL
273+ views = { new OrthographicView ( ) }
274+ initialViewState = { INITIAL_VIEW_STATE }
275+ controller = { true }
276+ layers = { layers }
277+ onHover = { ( info ) => {
278+ if ( info . coordinate ) {
279+ setMousePosition ( [ info . coordinate [ 0 ] , info . coordinate [ 1 ] ] ) ;
280+ } else {
281+ setMousePosition ( null ) ;
282+ }
283+ } }
284+ />
285+ </ div >
286+ < aside
265287 style = { {
266- width : '350px ' ,
288+ width : '260px ' ,
267289 height : '100vh' ,
268290 overflowY : 'auto' ,
269291 background : 'rgba(255, 255, 255, 0.95)' ,
270292 padding : '15px' ,
271293 fontFamily : 'Arial, sans-serif' ,
272- boxShadow : '2px 0 10px rgba(0,0,0,0.1)' ,
273- borderRight : '1px solid #ddd'
294+ boxShadow : '- 2px 0 10px rgba(0,0,0,0.1)' ,
295+ borderLeft : '1px solid #ddd'
274296 } }
275297 >
276298 < div style = { { marginBottom : '15px' } } >
@@ -488,22 +510,7 @@ export default function App(): ReactElement {
488510 />
489511 </ div >
490512 </ div >
491- </ div >
492- < div style = { { flex : 1 , height : '100vh' , position : 'relative' , overflow : 'hidden' } } >
493- < DeckGL
494- views = { new OrthographicView ( ) }
495- initialViewState = { INITIAL_VIEW_STATE }
496- controller = { true }
497- layers = { layers }
498- onHover = { ( info ) => {
499- if ( info . coordinate ) {
500- setMousePosition ( [ info . coordinate [ 0 ] , info . coordinate [ 1 ] ] ) ;
501- } else {
502- setMousePosition ( null ) ;
503- }
504- } }
505- />
506- </ div >
513+ </ aside >
507514 </ div >
508515 ) ;
509516}
0 commit comments