xiaoyuxi commited on
Commit
590e8f9
·
1 Parent(s): fe654c1
Files changed (1) hide show
  1. _viz/viz_template.html +34 -30
_viz/viz_template.html CHANGED
@@ -180,8 +180,8 @@
180
  top: 16px;
181
  right: 16px;
182
  background: rgba(44, 44, 44, 0.98);
183
- padding: 15px;
184
- border-radius: 12px;
185
  width: 150px;
186
  max-height: calc(100vh - 40px);
187
  overflow-y: auto;
@@ -243,12 +243,12 @@
243
  }
244
 
245
  .settings-group {
246
- margin-bottom: 16px;
247
  }
248
 
249
  .settings-group h3 {
250
- margin: 0 0 8px 0;
251
- font-size: 14px;
252
  font-weight: 500;
253
  color: var(--text-secondary);
254
  }
@@ -256,26 +256,26 @@
256
  .slider-container {
257
  display: flex;
258
  align-items: center;
259
- gap: 12px;
260
  }
261
 
262
  .slider-container label {
263
- min-width: 80px;
264
- font-size: 14px;
265
  }
266
 
267
  input[type="range"] {
268
  flex-grow: 1;
269
- height: 4px;
270
  -webkit-appearance: none;
271
  background: rgba(255, 255, 255, 0.1);
272
- border-radius: 2px;
273
  }
274
 
275
  input[type="range"]::-webkit-slider-thumb {
276
  -webkit-appearance: none;
277
- width: 16px;
278
- height: 16px;
279
  border-radius: 50%;
280
  background: var(--primary);
281
  cursor: pointer;
@@ -284,8 +284,8 @@
284
  .toggle-switch {
285
  position: relative;
286
  display: inline-block;
287
- width: 40px;
288
- height: 20px;
289
  }
290
 
291
  .toggle-switch input {
@@ -303,16 +303,16 @@
303
  bottom: 0;
304
  background: rgba(255, 255, 255, 0.1);
305
  transition: .4s;
306
- border-radius: 20px;
307
  }
308
 
309
  .toggle-slider:before {
310
  position: absolute;
311
  content: "";
312
- height: 16px;
313
- width: 16px;
314
- left: 2px;
315
- bottom: 2px;
316
  background: var(--surface);
317
  border: 1px solid var(--border);
318
  transition: .4s;
@@ -324,18 +324,18 @@
324
  }
325
 
326
  input:checked + .toggle-slider:before {
327
- transform: translateX(20px);
328
  }
329
 
330
  .checkbox-container {
331
  display: flex;
332
  align-items: center;
333
- gap: 8px;
334
- margin-bottom: 8px;
335
  }
336
 
337
  .checkbox-container label {
338
- font-size: 14px;
339
  cursor: pointer;
340
  }
341
 
@@ -438,10 +438,10 @@
438
  }
439
 
440
  h2 {
441
- font-size: 1.2rem;
442
  font-weight: 600;
443
  margin-top: 0;
444
- margin-bottom: var(--space-md);
445
  color: var(--primary);
446
  cursor: move;
447
  user-select: none;
@@ -450,8 +450,8 @@
450
  }
451
 
452
  .drag-handle {
453
- font-size: 14px;
454
- margin-right: 8px;
455
  opacity: 0.6;
456
  }
457
 
@@ -470,6 +470,8 @@
470
  color: var(--primary);
471
  border: 1px solid rgba(155, 89, 182, 0.2);
472
  font-weight: 600;
 
 
473
  transition: all 0.2s;
474
  }
475
 
@@ -527,7 +529,7 @@
527
 
528
  .btn-group {
529
  display: flex;
530
- margin-top: 16px;
531
  }
532
 
533
  #reset-view-btn, #reset-settings-btn {
@@ -535,6 +537,8 @@
535
  color: var(--primary);
536
  border: 1px solid rgba(155, 89, 182, 0.2);
537
  font-weight: 600;
 
 
538
  transition: all 0.2s;
539
  }
540
 
@@ -588,8 +592,8 @@
588
  <h2>
589
  <span class="drag-handle">☰</span>
590
  Visualization Settings
591
- <button id="hide-settings-btn" class="control-btn" style="margin-left: auto; padding: 4px;" title="Hide Panel">
592
- <svg class="icon" viewBox="0 0 24 24" style="width: 18px; height: 18px;">
593
  <path d="M14.59 7.41L18.17 11H4v2h14.17l-3.58 3.59L16 18l6-6-6-6-1.41 1.41z"/>
594
  </svg>
595
  </button>
 
180
  top: 16px;
181
  right: 16px;
182
  background: rgba(44, 44, 44, 0.98);
183
+ padding: 10px;
184
+ border-radius: 6px;
185
  width: 150px;
186
  max-height: calc(100vh - 40px);
187
  overflow-y: auto;
 
243
  }
244
 
245
  .settings-group {
246
+ margin-bottom: 8px;
247
  }
248
 
249
  .settings-group h3 {
250
+ margin: 0 0 4px 0;
251
+ font-size: 7px;
252
  font-weight: 500;
253
  color: var(--text-secondary);
254
  }
 
256
  .slider-container {
257
  display: flex;
258
  align-items: center;
259
+ gap: 6px;
260
  }
261
 
262
  .slider-container label {
263
+ min-width: 40px;
264
+ font-size: 7px;
265
  }
266
 
267
  input[type="range"] {
268
  flex-grow: 1;
269
+ height: 2px;
270
  -webkit-appearance: none;
271
  background: rgba(255, 255, 255, 0.1);
272
+ border-radius: 1px;
273
  }
274
 
275
  input[type="range"]::-webkit-slider-thumb {
276
  -webkit-appearance: none;
277
+ width: 8px;
278
+ height: 8px;
279
  border-radius: 50%;
280
  background: var(--primary);
281
  cursor: pointer;
 
284
  .toggle-switch {
285
  position: relative;
286
  display: inline-block;
287
+ width: 20px;
288
+ height: 10px;
289
  }
290
 
291
  .toggle-switch input {
 
303
  bottom: 0;
304
  background: rgba(255, 255, 255, 0.1);
305
  transition: .4s;
306
+ border-radius: 10px;
307
  }
308
 
309
  .toggle-slider:before {
310
  position: absolute;
311
  content: "";
312
+ height: 8px;
313
+ width: 8px;
314
+ left: 1px;
315
+ bottom: 1px;
316
  background: var(--surface);
317
  border: 1px solid var(--border);
318
  transition: .4s;
 
324
  }
325
 
326
  input:checked + .toggle-slider:before {
327
+ transform: translateX(10px);
328
  }
329
 
330
  .checkbox-container {
331
  display: flex;
332
  align-items: center;
333
+ gap: 4px;
334
+ margin-bottom: 4px;
335
  }
336
 
337
  .checkbox-container label {
338
+ font-size: 7px;
339
  cursor: pointer;
340
  }
341
 
 
438
  }
439
 
440
  h2 {
441
+ font-size: 0.6rem;
442
  font-weight: 600;
443
  margin-top: 0;
444
+ margin-bottom: 12px;
445
  color: var(--primary);
446
  cursor: move;
447
  user-select: none;
 
450
  }
451
 
452
  .drag-handle {
453
+ font-size: 7px;
454
+ margin-right: 4px;
455
  opacity: 0.6;
456
  }
457
 
 
470
  color: var(--primary);
471
  border: 1px solid rgba(155, 89, 182, 0.2);
472
  font-weight: 600;
473
+ font-size: 6px;
474
+ padding: 4px 6px;
475
  transition: all 0.2s;
476
  }
477
 
 
529
 
530
  .btn-group {
531
  display: flex;
532
+ margin-top: 8px;
533
  }
534
 
535
  #reset-view-btn, #reset-settings-btn {
 
537
  color: var(--primary);
538
  border: 1px solid rgba(155, 89, 182, 0.2);
539
  font-weight: 600;
540
+ font-size: 6px;
541
+ padding: 4px 6px;
542
  transition: all 0.2s;
543
  }
544
 
 
592
  <h2>
593
  <span class="drag-handle">☰</span>
594
  Visualization Settings
595
+ <button id="hide-settings-btn" class="control-btn" style="margin-left: auto; padding: 2px;" title="Hide Panel">
596
+ <svg class="icon" viewBox="0 0 24 24" style="width: 9px; height: 9px;">
597
  <path d="M14.59 7.41L18.17 11H4v2h14.17l-3.58 3.59L16 18l6-6-6-6-1.41 1.41z"/>
598
  </svg>
599
  </button>