tractatus/public/js/components
TheFlow 52f3ca6025 fix(i18n): desktop language selector showing both icons and dropdown
Issue:
- After cache clear, desktop was showing BOTH dropdown AND icon buttons
- Mobile was correctly showing only icon buttons
- Expected: Desktop = dropdown only, Mobile = icons only

Root Cause:
- Tailwind responsive classes were conflicting
- `flex md:hidden gap-1` applied flex at all times, then hid at md+
- `relative` was unconditionally applied to desktop dropdown container
- Separation of concerns was unclear between visibility and layout

Fix Applied:
1. Desktop dropdown container:
   - Before: `class="hidden md:block relative"`
   - After: `class="hidden md:block md:relative"`
   - Now `relative` only applies at md+ breakpoint

2. Mobile icons container:
   - Before: `class="flex md:hidden gap-1"` (single div)
   - After: `class="md:hidden"` wrapping `class="flex gap-1"` (nested divs)
   - Separated visibility control from layout control
   - Parent div: controls visibility (hidden at md+)
   - Child div: controls layout (flex with gap)

Technical Explanation:
- Tailwind mobile-first: Base styles apply to all, md: applies at ≥768px
- `hidden md:block` = hidden by default, block at md+
- `md:hidden` = visible by default, hidden at md+
- Nesting clarifies intent and prevents class conflicts

Result:
- Desktop (≥768px): Dropdown visible, icons hidden ✓
- Mobile (<768px): Icons visible, dropdown hidden ✓

Deployment:
- language-selector.js deployed to production
- Cache-busting version already in place (?v=0.1.0.1760643941)
- Users should see correct behavior after hard refresh

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 08:50:59 +13:00
..
coming-soon-overlay.js feat: add Koha pre-production deployment configuration 2025-10-08 21:00:54 +13:00
currency-selector.js feat: add multi-currency support and privacy policy to Koha system 2025-10-08 15:17:23 +13:00
document-cards.js feat: comprehensive accessibility improvements (WCAG 2.1 AA) 2025-10-12 07:08:40 +13:00
document-viewer.js feat: complete Option A & B - infrastructure validation and content foundation 2025-10-07 11:52:38 +13:00
footer.js feat: add multi-currency support and privacy policy to Koha system 2025-10-08 15:17:23 +13:00
language-selector.js fix(i18n): desktop language selector showing both icons and dropdown 2025-10-17 08:50:59 +13:00
navbar.js fix: remove duplicate language selector container from mobile menu 2025-10-16 23:19:50 +13:00