tractatus/public
TheFlow cebcfcab71 fix(i18n): completely rewrite language selector structure to fix desktop rendering
Critical Issue:
- Desktop showed NOTHING on initial load after cache clear
- Then both dropdown AND icons appeared together
- Expected: Desktop = dropdown ONLY, Mobile = icons ONLY

Root Cause Analysis:
1. Wrapper div `language-selector` had no display control
2. Nested structure with `hidden md:block` on desktop container
3. Nested structure with `md:hidden` wrapping flex container on mobile
4. Tailwind `hidden` class uses `display: none !important`
5. Complex nesting caused CSS specificity and timing issues
6. Both containers fought for visibility control

Previous Structure (BROKEN):
```html
<div class="language-selector">
  <!-- Desktop -->
  <div class="hidden md:block md:relative">
    <select>...</select>
  </div>
  <!-- Mobile -->
  <div class="md:hidden">
    <div class="flex gap-1">
      ...buttons...
    </div>
  </div>
</div>
```

New Structure (FIXED):
```html
<!-- Desktop - Direct sibling -->
<div class="hidden md:flex md:relative">
  <select>...</select>
</div>

<!-- Mobile - Direct sibling -->
<div class="flex gap-1 md:hidden">
  ...buttons...
</div>
```

Key Improvements:
1. Removed wrapper div - eliminated ambiguity
2. Made both containers direct siblings in parent
3. Desktop: `hidden md:flex md:relative`
   - hidden on mobile (display: none)
   - flex on desktop (display: flex at md+)
   - relative positioning only on desktop
4. Mobile: `flex gap-1 md:hidden`
   - flex with gap on mobile (display: flex)
   - hidden on desktop (display: none at md+)
5. Removed extra nested div wrappers
6. Each container explicitly controls own visibility AND layout

Technical Details:
- Tailwind mobile-first: base = mobile, md: = desktop (≥768px)
- `hidden` = display: none !important (all sizes)
- `md:flex` = display: flex at ≥768px
- `md:hidden` = display: none at ≥768px
- Using `flex` instead of `block` for better layout control
- Siblings don't interfere with each other's display logic

Result:
- Desktop (≥768px): Dropdown visible (flex), Icons hidden ✓
- Mobile (<768px): Icons visible (flex), Dropdown hidden ✓
- Clean, predictable behavior with no timing issues

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-17 08:56:08 +13:00
..
.well-known security: comprehensive security audit and hardening 2025-10-10 05:34:40 +13:00
about feat: comprehensive accessibility improvements (WCAG 2.1 AA) 2025-10-12 07:08:40 +13:00
admin feat: add case submission portal admin interface and i18n support 2025-10-16 14:50:47 +13:00
css fix(ui): rebuild Tailwind CSS with tooltip classes and update cache to v1.0.4 2025-10-09 09:53:07 +13:00
demos feat: newsletter modal and deployment script enhancements 2025-10-14 13:11:46 +13:00
downloads docs: regenerate PDFs and update documentation metadata 2025-10-14 10:53:48 +13:00
images feat: add runtime-agnostic architecture page with honest early-stage positioning 2025-10-13 21:51:58 +13:00
js fix(i18n): completely rewrite language selector structure to fix desktop rendering 2025-10-17 08:56:08 +13:00
koha feat: complete Priority 2 - Enhanced Koha Transparency Dashboard 2025-10-11 17:14:34 +13:00
locales feat: add multilingual support for 5 key pages (researcher, leader, implementer, about, faq) 2025-10-16 23:11:12 +13:00
about.html fix(i18n): resolve language selector display issues with cache-busting 2025-10-17 08:47:15 +13:00
api-reference.html fix: update copyright attribution to John G Stroh across all website pages 2025-10-15 08:16:09 +13:00
architecture.html fix: update copyright attribution to John G Stroh across all website pages 2025-10-15 08:16:09 +13:00
blog-post.html fix: update copyright attribution to John G Stroh across all website pages 2025-10-15 08:16:09 +13:00
blog.html fix: update copyright attribution to John G Stroh across all website pages 2025-10-15 08:16:09 +13:00
case-submission.html fix: update copyright attribution to John G Stroh across all website pages 2025-10-15 08:16:09 +13:00
check-version.html feat: fix documentation system - cards, PDFs, TOC, and navigation 2025-10-07 22:51:55 +13:00
docs-viewer.html chore: cache busting for document review updates 2025-10-12 20:42:46 +13:00
docs.html fix(i18n): resolve language selector display issues with cache-busting 2025-10-17 08:47:15 +13:00
faq.html fix(i18n): resolve language selector display issues with cache-busting 2025-10-17 08:47:15 +13:00
favicon.ico feat: implement Rule Manager and Project Manager admin systems 2025-10-11 17:16:51 +13:00
favicon.svg feat: comprehensive documentation improvements and GitHub integration 2025-10-09 14:33:14 +13:00
implementer.html fix(i18n): resolve language selector display issues with cache-busting 2025-10-17 08:47:15 +13:00
index.html fix(i18n): resolve language selector display issues with cache-busting 2025-10-17 08:47:15 +13:00
koha.html feat: add case submission portal admin interface and i18n support 2025-10-16 14:50:47 +13:00
leader.html fix(i18n): resolve language selector display issues with cache-busting 2025-10-17 08:47:15 +13:00
manifest.json feat: add version control system and PWA support 2025-10-14 10:53:29 +13:00
media-inquiry.html fix: update copyright attribution to John G Stroh across all website pages 2025-10-15 08:16:09 +13:00
media-triage-transparency.html fix: update copyright attribution to John G Stroh across all website pages 2025-10-15 08:16:09 +13:00
privacy.html chore: cache busting for document review updates 2025-10-12 20:42:46 +13:00
researcher.html fix(i18n): resolve language selector display issues with cache-busting 2025-10-17 08:47:15 +13:00
service-worker.js refactor: rewrite Copilot Q&A in measured, evidence-based tone 2025-10-14 14:19:46 +13:00
version.json refactor: rewrite Copilot Q&A in measured, evidence-based tone 2025-10-14 14:19:46 +13:00