Spaces:
Running on Zero
Running on Zero
fix(ui): mode-button auto-close also resets hamburger ≡ + aria-expanded
Browse files
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 |
|