SeaWolf-AI commited on
Commit
b72c520
·
verified ·
1 Parent(s): 315a9e6

compact header, taller windows

Browse files
Files changed (2) hide show
  1. app.js +1 -1
  2. styles.css +10 -0
app.js CHANGED
@@ -406,7 +406,7 @@ function boot() {
406
  document.addEventListener('click', e => { $('#ctx').classList.remove('show'); document.querySelectorAll('.mitem.open').forEach(m => m.classList.remove('open')); if (!e.target.closest('#start')) $('#start').classList.remove('show'); });
407
  const tick = () => { $('#clock').textContent = new Date().toTimeString().slice(0, 5); }; tick(); setInterval(tick, 10000);
408
  $('#banner').textContent = t('replayBanner'); $('#banner').classList.add('show'); setTimeout(() => $('#banner').classList.remove('show'), 6000);
409
- refreshTray(); renderDock(); { const tw = openApp('term'), gw = openApp('game'), DW = $('#desk').clientWidth - 110; if (!isPhone()) { const L = Math.min(230, $('#icons').offsetWidth + 30), half = Math.floor(($('#desk').clientWidth - L - 24 - ($('#arch') && $('#arch').offsetWidth ? 310 : 0)) / 2); tw.style.left = L + 'px'; tw.style.top = '40px'; tw.style.width = half + 'px'; gw.style.left = (L + 12 + half) + 'px'; gw.style.top = '40px'; gw.style.width = half + 'px'; } focusWin(tw); setTimeout(() => { const i = tw.querySelector('input'); if (i) i.focus(); }, 120); }
410
  const sp = el('div', {id:'splash', role:'dialog', onclick:() => sp.remove()}, el('div', {class:'sp'}, el('div', {class:'spbar'}), ...copyNodes(), el('div', {class:'small muted', style:'margin-top:14px'}, t('booting'))));
411
  if (!new URLSearchParams(location.search).has('nosplash')) { document.body.append(sp); setTimeout(() => sp.remove(), 4500); }
412
  window.VK = {openApp, verifyChain};
 
406
  document.addEventListener('click', e => { $('#ctx').classList.remove('show'); document.querySelectorAll('.mitem.open').forEach(m => m.classList.remove('open')); if (!e.target.closest('#start')) $('#start').classList.remove('show'); });
407
  const tick = () => { $('#clock').textContent = new Date().toTimeString().slice(0, 5); }; tick(); setInterval(tick, 10000);
408
  $('#banner').textContent = t('replayBanner'); $('#banner').classList.add('show'); setTimeout(() => $('#banner').classList.remove('show'), 6000);
409
+ refreshTray(); renderDock(); { const tw = openApp('term'), gw = openApp('game'), DW = $('#desk').clientWidth - 110; if (!isPhone()) { const L = Math.min(230, $('#icons').offsetWidth + 30), half = Math.floor(($('#desk').clientWidth - L - 24 - ($('#arch') && $('#arch').offsetWidth ? 310 : 0)) / 2); tw.style.left = L + 'px'; tw.style.top = '40px'; tw.style.width = half + 'px'; gw.style.left = (L + 12 + half) + 'px'; gw.style.top = '40px'; gw.style.width = half + 'px'; const H = Math.max(360, $('#desk').clientHeight - 150) + 'px'; tw.style.height = H; gw.style.height = H; } focusWin(tw); setTimeout(() => { const i = tw.querySelector('input'); if (i) i.focus(); }, 120); }
410
  const sp = el('div', {id:'splash', role:'dialog', onclick:() => sp.remove()}, el('div', {class:'sp'}, el('div', {class:'spbar'}), ...copyNodes(), el('div', {class:'small muted', style:'margin-top:14px'}, t('booting'))));
411
  if (!new URLSearchParams(location.search).has('nosplash')) { document.body.append(sp); setTimeout(() => sp.remove(), 4500); }
412
  window.VK = {openApp, verifyChain};
styles.css CHANGED
@@ -313,3 +313,13 @@ body{display:flex;flex-direction:column;height:100vh;height:100dvh}
313
  #arch .abar span{background:#fff;border:1px solid #E2E8F0;border-radius:999px;padding:2px 7px;font-weight:700;color:#4338CA}
314
  #arch .abar b{color:#0F172A;font-size:11px}
315
  @media (max-width:1100px){#arch{display:none}}
 
 
 
 
 
 
 
 
 
 
 
313
  #arch .abar span{background:#fff;border:1px solid #E2E8F0;border-radius:999px;padding:2px 7px;font-weight:700;color:#4338CA}
314
  #arch .abar b{color:#0F172A;font-size:11px}
315
  @media (max-width:1100px){#arch{display:none}}
316
+
317
+ /* compact header: give height to the desktop */
318
+ #hdr{padding:6px 14px;gap:10px;row-gap:4px}
319
+ #hdr .ht{display:flex;align-items:baseline;gap:12px;flex-wrap:nowrap;min-width:0}
320
+ #hdr h1{font-size:15px;white-space:nowrap}
321
+ #hdr .hq{margin:0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
322
+ #hdr .hd{display:none}
323
+ #hdr #more,#hdr #langsw button{padding-top:4px;padding-bottom:4px;font-size:12px}
324
+ #modelbar{margin-top:0}
325
+ #modelbar .mrow{padding:2px 9px;font-size:11.5px}