feat: coordinator dropdown replaces the tab row
- pages.tsx: when signed in, the Coordinator pill in the session bar is a <details> menu with Shifts, Contacts and Settings, the current section marked. Signed out it stays a plain link to sign-in. Off coordinator pages no section is marked current. CoordinatorTabs is removed. - Phones and tablets (75em and below): no nested menu inside the hamburger overlay; the three sections show as a second row under Sign Up / Log out. - app.css: .coord-menu and .session-sections styles; drop .desk-tabs. - enhance.js: the menu closes on outside click and Esc, like the View menu. - tests: admins.test.ts checks the menu, the phone row, the signed-out link, and no current section on a public page.
This commit is contained in:
1 parent
c4fe911969
commit
c576613b9d
4 files changed
+218
-90
No files matched your search
@@ -27,7 +27,7 @@
|
||||
}
|
||||
|
||||
function bindViewMenu() {
|
||||
var menus = document.querySelectorAll('details.view-menu, details.manage-menu');
|
||||
var menus = document.querySelectorAll('details.view-menu, details.manage-menu, details.coord-menu');
|
||||
if (!menus.length) return;
|
||||
document.addEventListener('click', function (event) {
|
||||
for (var i = 0; i < menus.length; i += 1) {
|
||||
|
||||
Reference in new issue
Block a user