# Nav Centering Pattern — 4-Page App ## Applied: Jun 2026 session Applied to Dashboard (index.html), Repair Orders, Customers, Appointments. ## Before Structure ```html
Page
... user menu ...
``` ## After Structure ```html
PageName
... user menu ...
``` ## Per-Page Details | Page | Mobile Title | Active Nav Link | |------|-------------|-----------------| | index.html | Dashboard | Dashboard | | repair-orders.html | Repair Orders | Repair Orders | | customers.html | Customers | Customers | | appointments.html | Appointments | Appointments | ## What Changed Per Page There are 3 structural differences to apply per page (use `justify-between` as search anchor): 1. **Outer flex row:** `justify-between` → removed. The `flex-1` spacers handle the spacing. 2. **Left div:** `flex items-center gap-0.5` → `flex-1 flex lg:hidden`. Hamburger button loses its own `lg:hidden` class. 3. **Right controls div:** `flex items-center gap-1.5 md:gap-2` → `flex-1 flex justify-end items-center gap-1.5`. 4. **Desktop nav div:** Add `mx-auto` to the existing classes: `hidden lg:flex items-center gap-0.5 mx-auto`. 5. **Stray closing div:** The old left wrapper (`flex items-center gap-0.5`) used to have a `` that closed it. With the new structure, that closing `` becomes orphaned — remove it. It's usually right before the Mobile Page Title span.