cyberai-1 commited on
Commit
ea79deb
Β·
1 Parent(s): 524ee4b

update data video box

Browse files
Files changed (1) hide show
  1. index.html +39 -8
index.html CHANGED
@@ -33,6 +33,7 @@ body {
33
  font-family: var(--body);
34
  min-height: 100vh;
35
  }
 
36
 
37
  /* Grid noise texture */
38
  body::after {
@@ -290,13 +291,25 @@ header {
290
  .dir-up { background:var(--purple); }
291
 
292
  /* ── VIDEO PANEL ── */
293
- #videoPanel { display:none;padding:32px; }
 
 
 
 
 
294
 
295
  .video-layout {
296
  display:flex;
297
  align-items:stretch;
298
  gap:20px;
299
- min-height:calc(100vh - 125px);
 
 
 
 
 
 
 
300
  }
301
 
302
  #view-video {
@@ -310,7 +323,7 @@ header {
310
  position:relative;
311
  border:1px solid var(--border);
312
  border-radius:6px;
313
- min-height:420px;
314
  }
315
 
316
  #videoEl { display:block;width:100%;height:100%;object-fit:contain; }
@@ -333,7 +346,15 @@ header {
333
  letter-spacing:1px;
334
  }
335
 
336
- .video-sidebar { display:flex;flex:0 0 320px;flex-direction:column;gap:14px; }
 
 
 
 
 
 
 
 
337
 
338
  .vid-ctrl {
339
  background:var(--s1);border:1px solid var(--border);border-radius:6px;padding:18px;
@@ -397,13 +418,21 @@ header {
397
  flex-direction:column;
398
  min-height:0;
399
  }
 
 
 
 
 
 
 
 
400
  #view-video {
401
- flex:none;
402
- min-height:320px;
403
- aspect-ratio:16 / 9;
404
  }
405
  .video-sidebar {
406
  flex:0 0 auto;
 
 
407
  }
408
  }
409
 
@@ -581,7 +610,7 @@ header {
581
  <div id="videoPanel" style="display:none">
582
  <div class="video-layout">
583
 
584
- <div>
585
  <div class="video-wrap" id="view-video">
586
  <div class="no-video no-signal" id="noSignal">
587
  <div class="no-video-icon">🎬</div>
@@ -1506,6 +1535,7 @@ function updateLiveCounts(counts) {
1506
 
1507
  // ══ NAVIGATION ════════════════════════════════════════════════════════════════
1508
  function showPage(page) {
 
1509
  document.getElementById('uploadPage').style.display = page==='upload' ? 'block' : 'none';
1510
  document.getElementById('dashPage').style.display = page==='dash' ? 'block' : 'none';
1511
  document.getElementById('btnGoDash').style.display = page==='dash' ? 'inline-flex' : 'none';
@@ -1514,6 +1544,7 @@ function showPage(page) {
1514
  function switchDashTab(tab, btn) {
1515
  document.querySelectorAll('.dash-tab').forEach(b => b.classList.remove('active'));
1516
  btn.classList.add('active');
 
1517
 
1518
  document.getElementById('tab-overview').style.display = tab==='overview' ? 'block' : 'none';
1519
  document.getElementById('tab-scenes').style.display = tab==='scenes' ? 'block' : 'none';
 
33
  font-family: var(--body);
34
  min-height: 100vh;
35
  }
36
+ body.video-tab-active { overflow:hidden; }
37
 
38
  /* Grid noise texture */
39
  body::after {
 
291
  .dir-up { background:var(--purple); }
292
 
293
  /* ── VIDEO PANEL ── */
294
+ #videoPanel {
295
+ display:none;
296
+ height:calc(100vh - 105px);
297
+ padding:20px 32px;
298
+ overflow:hidden;
299
+ }
300
 
301
  .video-layout {
302
  display:flex;
303
  align-items:stretch;
304
  gap:20px;
305
+ height:100%;
306
+ min-height:0;
307
+ }
308
+
309
+ .video-stage {
310
+ min-width:0;
311
+ flex:1;
312
+ display:flex;
313
  }
314
 
315
  #view-video {
 
323
  position:relative;
324
  border:1px solid var(--border);
325
  border-radius:6px;
326
+ min-height:0;
327
  }
328
 
329
  #videoEl { display:block;width:100%;height:100%;object-fit:contain; }
 
346
  letter-spacing:1px;
347
  }
348
 
349
+ .video-sidebar {
350
+ display:flex;
351
+ flex:0 0 390px;
352
+ min-width:360px;
353
+ flex-direction:column;
354
+ gap:14px;
355
+ overflow:auto;
356
+ padding-right:4px;
357
+ }
358
 
359
  .vid-ctrl {
360
  background:var(--s1);border:1px solid var(--border);border-radius:6px;padding:18px;
 
418
  flex-direction:column;
419
  min-height:0;
420
  }
421
+ #videoPanel {
422
+ height:calc(100vh - 105px);
423
+ padding:16px;
424
+ }
425
+ .video-stage {
426
+ flex:1;
427
+ min-height:0;
428
+ }
429
  #view-video {
430
+ min-height:0;
 
 
431
  }
432
  .video-sidebar {
433
  flex:0 0 auto;
434
+ min-width:0;
435
+ max-height:38vh;
436
  }
437
  }
438
 
 
610
  <div id="videoPanel" style="display:none">
611
  <div class="video-layout">
612
 
613
+ <div class="video-stage">
614
  <div class="video-wrap" id="view-video">
615
  <div class="no-video no-signal" id="noSignal">
616
  <div class="no-video-icon">🎬</div>
 
1535
 
1536
  // ══ NAVIGATION ════════════════════════════════════════════════════════════════
1537
  function showPage(page) {
1538
+ if (page !== 'dash') document.body.classList.remove('video-tab-active');
1539
  document.getElementById('uploadPage').style.display = page==='upload' ? 'block' : 'none';
1540
  document.getElementById('dashPage').style.display = page==='dash' ? 'block' : 'none';
1541
  document.getElementById('btnGoDash').style.display = page==='dash' ? 'inline-flex' : 'none';
 
1544
  function switchDashTab(tab, btn) {
1545
  document.querySelectorAll('.dash-tab').forEach(b => b.classList.remove('active'));
1546
  btn.classList.add('active');
1547
+ document.body.classList.toggle('video-tab-active', tab === 'video');
1548
 
1549
  document.getElementById('tab-overview').style.display = tab==='overview' ? 'block' : 'none';
1550
  document.getElementById('tab-scenes').style.display = tab==='scenes' ? 'block' : 'none';