bep40 commited on
Commit
95f1061
·
verified ·
1 Parent(s): 5660032

fix: popup positioning - top aligned, fits player frame

Browse files
Files changed (1) hide show
  1. static/yt_live.js +2 -2
static/yt_live.js CHANGED
@@ -158,12 +158,12 @@
158
  .vtv-mini-btn.x:hover{background:#900;color:#fff}
159
  .vtv-mini-peek{position:absolute;bottom:-18px;right:10px;background:#0066cc;color:#fff;font-size:9px;padding:2px 8px;border-radius:0 0 6px 6px;cursor:pointer;display:none}
160
  .vtv-mini.hidden .vtv-mini-peek{display:block}
161
- .vtv-popup{position:fixed;inset:0;background:rgba(0,0,0,.95);z-index:99999;display:none;flex-direction:column;max-height:60vh;max-width:800px;margin:auto;left:20px;right:20px;top:20px;bottom:20px;border-radius:12px;overflow:hidden}
162
  .vtv-popup.show{display:flex}
163
  .vtv-popup-header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#111;border-bottom:1px solid #333}
164
  .vtv-popup-title{font-size:14px;font-weight:700;color:#00ccff}
165
  .vtv-popup-close{background:#333;border:none;color:#fff;font-size:18px;width:32px;height:32px;border-radius:6px;cursor:pointer}
166
- .vtv-popup-frame{flex:1;position:relative;background:#000;min-height:280px}
167
  .vtv-popup-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:none}
168
  .vtv-popup-loader{display:flex;align-items:center;justify-content:center;height:280px;color:#00ccff;font-size:12px;flex-direction:column;gap:8px}
169
  .vtv-popup-btn{background:#1a2a3a;border:1px solid #2a3a4a;color:#8ab4d8;font-size:9px;padding:3px 8px;border-radius:6px;cursor:pointer;margin-left:4px}
 
158
  .vtv-mini-btn.x:hover{background:#900;color:#fff}
159
  .vtv-mini-peek{position:absolute;bottom:-18px;right:10px;background:#0066cc;color:#fff;font-size:9px;padding:2px 8px;border-radius:0 0 6px 6px;cursor:pointer;display:none}
160
  .vtv-mini.hidden .vtv-mini-peek{display:block}
161
+ .vtv-popup{position:fixed;top:0;left:0;right:0;margin:8px auto 0;background:rgba(0,0,0,.95);z-index:99999;display:none;flex-direction:column;max-height:calc(100vh - 16px);max-width:800px;border-radius:12px;overflow:hidden}
162
  .vtv-popup.show{display:flex}
163
  .vtv-popup-header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#111;border-bottom:1px solid #333}
164
  .vtv-popup-title{font-size:14px;font-weight:700;color:#00ccff}
165
  .vtv-popup-close{background:#333;border:none;color:#fff;font-size:18px;width:32px;height:32px;border-radius:6px;cursor:pointer}
166
+ .vtv-popup-frame{flex:1;position:relative;background:#000;min-height:0;aspect-ratio:16/9}
167
  .vtv-popup-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:none}
168
  .vtv-popup-loader{display:flex;align-items:center;justify-content:center;height:280px;color:#00ccff;font-size:12px;flex-direction:column;gap:8px}
169
  .vtv-popup-btn{background:#1a2a3a;border:1px solid #2a3a4a;color:#8ab4d8;font-size:9px;padding:3px 8px;border-radius:6px;cursor:pointer;margin-left:4px}