techfreakworm commited on
Commit
af37c06
·
unverified ·
1 Parent(s): 5a2e5ec

fix(ui): mode-button auto-close also resets hamburger ≡ + aria-expanded

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -443,6 +443,8 @@ def build_app() -> gr.Blocks:
443
  f"if (window.matchMedia('(max-width: 1023px)').matches) {{ "
444
  f" document.querySelector('.aio-shell')?.classList.remove('drawer-open'); "
445
  f" document.querySelector('.aio-header')?.classList.remove('drawer-elevated'); "
 
 
446
  f"}} return []; }}",
447
  )
448
 
 
443
  f"if (window.matchMedia('(max-width: 1023px)').matches) {{ "
444
  f" document.querySelector('.aio-shell')?.classList.remove('drawer-open'); "
445
  f" document.querySelector('.aio-header')?.classList.remove('drawer-elevated'); "
446
+ f" const hb = document.querySelector('.aio-ham-label'); "
447
+ f" if (hb) {{ hb.textContent = '\\u2261'; hb.setAttribute('aria-expanded', 'false'); }} "
448
  f"}} return []; }}",
449
  )
450