mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-07-17 00:01:58 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18fb48cd26 | ||
|
|
30187da3db |
@@ -75,6 +75,22 @@
|
||||
window.addEventListener('hashchange', syncForRoute);
|
||||
window.addEventListener('resize', syncForRoute);
|
||||
|
||||
/* #1471 followup: also re-attempt sheet injection on More-button click,
|
||||
* in case the page sat idle past the 5s retry window. The bottom-nav.js
|
||||
* sheet is built lazily on first More-click, and addMissingMoreSheetItems
|
||||
* may have given up before then. Catch-all delegate listener handles this
|
||||
* AND survives any bottom-nav.js rebuild path. */
|
||||
document.addEventListener('click', function (e) {
|
||||
var t = e.target;
|
||||
if (!t) return;
|
||||
// Trigger whether operator clicked More button or any descendant
|
||||
var moreBtn = t.closest && t.closest('[data-bottom-nav-more], button');
|
||||
if (moreBtn && /more/i.test(moreBtn.textContent || '')) {
|
||||
setTimeout(addMissingMoreSheetItems, 50);
|
||||
setTimeout(addMissingMoreSheetItems, 250); // belt-and-suspenders for slow builds
|
||||
}
|
||||
}, true);
|
||||
|
||||
/* #1461 #7: on mobile, packets-list group-header expand is a UX dead-end
|
||||
* (we hid the chevron so there's no way to collapse). Intercept those
|
||||
* clicks and force them to the single-select code path instead — the
|
||||
|
||||
@@ -907,6 +907,36 @@ img.brand-logo {
|
||||
* #534 E2E test (and for any user whose navbar mirror failed to inject). */
|
||||
#pktLeft .page-header { display: none !important; }
|
||||
#pktLeft .pkt-filter-expr { display: none !important; }
|
||||
/* #1461 followup: the navbar mirror is always present on mobile.
|
||||
* Hide the in-page Filters button visually so we don't double-render the
|
||||
* affordance. Use visibility:hidden (not display:none) so it stays in
|
||||
* the DOM + clickable for the #534 E2E. Pull it to zero size so it
|
||||
* doesn't reserve layout space. */
|
||||
.filter-bar > .filter-toggle-btn {
|
||||
visibility: hidden !important;
|
||||
position: absolute;
|
||||
width: 0;
|
||||
height: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
pointer-events: auto;
|
||||
}
|
||||
/* Bar itself has no chrome unless expanded */
|
||||
.filter-bar {
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
padding: 0 !important;
|
||||
margin: 0 !important;
|
||||
min-height: 0 !important;
|
||||
}
|
||||
.filter-bar.filters-expanded {
|
||||
padding: 6px 8px !important;
|
||||
margin-bottom: 4px !important;
|
||||
background: var(--surface-2, rgba(0,0,0,0.05)) !important;
|
||||
border: 1px solid var(--border, #333) !important;
|
||||
border-radius: 6px !important;
|
||||
}
|
||||
|
||||
/* Navbar-mirror buttons injected by mobile-page-actions.js. Visual tokens
|
||||
* (border, colors) live here so the customizer can theme them and so we
|
||||
|
||||
Reference in New Issue
Block a user