File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 100100 color : rgba (0 , 0 , 0 , 0.5 );
101101 pointer-events : none;
102102 z-index : 1000 ;
103+ user-select : none;
103104 }
104105
105106 .hidden {
120121
121122 .view-chart {
122123 box-shadow : 0 0 15px darkgrey;
124+ width : 100% ;
125+ height : 100% ;
123126 }
124127
125128 .github-link {
281284 }
282285
283286 function switchToChart ( box ) {
287+ const boxBody = box . querySelector ( '.box-body' ) ;
284288 const viewJson = box . querySelector ( '.view-json' ) ;
285289 const viewHttp = box . querySelector ( '.view-http' ) ;
286290 const viewChart = box . querySelector ( '.view-chart' ) ;
293297 btnGenerate . textContent = 'Reload' ;
294298 btnBack . style . display = 'block' ;
295299 viewInputType . style . display = 'none' ;
300+ boxBody . style . padding = '30px' ;
296301 updatePlotSize ( box ) ;
297302 }
298303
299304 function switchToJson ( box ) {
305+ const boxBody = box . querySelector ( '.box-body' ) ;
300306 const inputType = box . querySelector ( '.input-type' ) . value ;
301307 const viewJson = box . querySelector ( '.view-json' ) ;
302308 const viewHttp = box . querySelector ( '.view-http' ) ;
315321 viewJson . style . display = 'none' ;
316322 viewHttp . style . display = 'block' ;
317323 }
324+ boxBody . style . padding = '10px' ;
318325 }
319326
320327 async function reloadPlot ( box ) {
You can’t perform that action at this time.
0 commit comments