Skip to content

fix(ui): hide entire map-section during panel fullscreen (#829, #859)#1313

Open
NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
NewCoder3294:fix/fullscreen-overlay-and-settings-persistence
Open

fix(ui): hide entire map-section during panel fullscreen (#829, #859)#1313
NewCoder3294 wants to merge 1 commit intokoala73:mainfrom
NewCoder3294:fix/fullscreen-overlay-and-settings-persistence

Conversation

@NewCoder3294
Copy link
Collaborator

@NewCoder3294 NewCoder3294 commented Mar 9, 2026

Summary

  • Replaces fragile element-by-element overlay hiding with a single .map-section hide rule that comprehensively covers the WebGL canvas, all overlays, controls, legend, layer toggles, bottom grid, and resize handle
  • Adds visibility: visible !important to .live-news-fullscreen so fullscreen panels stay visible even when ancestors are hidden
  • Uses :not(.live-news-fullscreen) guard to prevent map section from hiding itself when it is the fullscreen element
  • Consolidates 3 redundant CSS rule blocks into clean, documented rules

Context

Five previous PRs (#689, #708, #857, #887, #934) attempted to fix these issues by hiding individual overlay elements (.layer-toggles, .map-legend, .deckgl-layer-toggles, .map-controls, etc.), but new elements kept slipping through. This fix takes a different approach — hiding the entire .map-section container instead of chasing individual children.

Scenarios verified with screenshots

Scenario Result
Live News panel fullscreen Clean — no map overlays or panels visible
Live Webcams panel fullscreen Clean — no map overlays or panels visible
Map section fullscreen (edge case) Correct — map + controls visible, panels hidden
Exit fullscreen → normal state Fully restored

Live News fullscreen

03-live-news-fullscreen

Live Webcams fullscreen

04-live-webcams-fullscreen

Map fullscreen

05-map-fullscreen

Test plan

  • Vite build succeeds
  • Pre-push hooks pass (typecheck, edge function tests, markdown lint, version sync)
  • Live News fullscreen: no map overlays, legend, layer toggles, or sibling panels visible
  • Live Webcams fullscreen: same clean fullscreen behavior
  • Map section fullscreen: map + its own controls visible, all panels hidden
  • Exiting fullscreen restores normal layout completely
  • Manual test on Chromium, Firefox, Safari
  • Manual test on Tauri desktop app

Closes #829
Closes #859

🤖 Generated with Claude Code

@vercel
Copy link

vercel bot commented Mar 9, 2026

@NewCoder3294 is attempting to deploy a commit to the Elie Team on Vercel.

A member of the Team first needs to authorize it.

@koala73
Copy link
Owner

koala73 commented Mar 9, 2026

@NewCoder3294 would you please fix the images in the Post , they are broken.
I promise to test on a huge screen today

@NewCoder3294
Copy link
Collaborator Author

oops, will work on that. I know you are busy, but can you respond to my x dm? If you can not find it, my X account is attached to my GitHub profile.

@NewCoder3294
Copy link
Collaborator Author

03-live-news-fullscreen 04-live-webcams-fullscreen 05-map-fullscreen

@koala73
Copy link
Owner

koala73 commented Mar 9, 2026

03-live-news-fullscreen 04-live-webcams-fullscreen 05-map-fullscreen

Cool , was referring to this (check top of this page)

CleanShot 2026-03-09 at 09 07 17@2x

@vercel
Copy link

vercel bot commented Mar 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Ready Ready Preview, Comment Mar 10, 2026 1:24pm

Request Review

…koala73#859)

Previous attempts (5 PRs) hid individual overlay elements one by one
(.layer-toggles, .map-legend, .deckgl-layer-toggles, etc.) but new
elements kept slipping through. Replace the fragile element-by-element
allowlist with a single rule that hides the entire .map-section
container, which covers the WebGL canvas, all overlays, controls,
legend, layer toggles, bottom grid, and resize handle.

Key changes:
- Add visibility: visible !important to .live-news-fullscreen so it
  stays visible even when an ancestor is hidden
- Hide .map-section:not(.live-news-fullscreen) to cover all map
  children while allowing map-section itself to go fullscreen
- Add pointer-events: none to hidden sibling panels
- Consolidate 3 redundant rule blocks into clean, documented rules

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@koala73 koala73 force-pushed the fix/fullscreen-overlay-and-settings-persistence branch from 4de8949 to 3b49ebb Compare March 19, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Full screen webcam is overlayed by new bottom panel Map legend and filters on top layer

2 participants