Skip to content

Commit 9014027

Browse files
committed
feat: style
1 parent 36dc73c commit 9014027

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
color: rgba(0, 0, 0, 0.5);
101101
pointer-events: none;
102102
z-index: 1000;
103+
user-select: none;
103104
}
104105

105106
.hidden {
@@ -120,6 +121,8 @@
120121

121122
.view-chart {
122123
box-shadow: 0 0 15px darkgrey;
124+
width: 100%;
125+
height: 100%;
123126
}
124127

125128
.github-link {
@@ -281,6 +284,7 @@
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');
@@ -293,10 +297,12 @@
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');
@@ -315,6 +321,7 @@
315321
viewJson.style.display = 'none';
316322
viewHttp.style.display = 'block';
317323
}
324+
boxBody.style.padding = '10px';
318325
}
319326

320327
async function reloadPlot(box) {

0 commit comments

Comments
 (0)