Skip to content

fix: Add proper z-index layering for dashboard overlays#12

Merged
StuartF303 merged 1 commit intomainfrom
claude/camper-van-control-setup-011CUpsFKnx2JFyoEDjhfgbz
Nov 9, 2025
Merged

fix: Add proper z-index layering for dashboard overlays#12
StuartF303 merged 1 commit intomainfrom
claude/camper-van-control-setup-011CUpsFKnx2JFyoEDjhfgbz

Conversation

@StuartF303
Copy link
Copy Markdown
Owner

Fixes issue where tank and control overlays were appearing behind the background van diagram image.

Changes:

  • Add CSS styles for van-diagram-background class
    • z-index: 1 (background layer)
    • pointer-events: none (allows clicking through to overlays)
  • Add CSS styles for overlay-item class
    • z-index: 10 (foreground layer)
    • z-index: 15 when in edit mode
  • Update background image to use van-diagram-background class
  • Update edit mode toggle z-index to 20 (always on top)
  • Add pointer-events: auto to overlay-content for interactivity

Z-index layering:

  • Background image: z-index 1
  • Tank/Control overlays: z-index 10
  • Overlays in edit mode: z-index 15
  • Edit mode toggle: z-index 20

This ensures overlays always appear above the background image and remain fully interactive for clicking and dragging.

Fixes issue where tank and control overlays were appearing behind the
background van diagram image.

Changes:
- Add CSS styles for van-diagram-background class
  - z-index: 1 (background layer)
  - pointer-events: none (allows clicking through to overlays)
- Add CSS styles for overlay-item class
  - z-index: 10 (foreground layer)
  - z-index: 15 when in edit mode
- Update background image to use van-diagram-background class
- Update edit mode toggle z-index to 20 (always on top)
- Add pointer-events: auto to overlay-content for interactivity

Z-index layering:
- Background image: z-index 1
- Tank/Control overlays: z-index 10
- Overlays in edit mode: z-index 15
- Edit mode toggle: z-index 20

This ensures overlays always appear above the background image and
remain fully interactive for clicking and dragging.
@StuartF303 StuartF303 merged commit 26c7b2a into main Nov 9, 2025
4 checks passed
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.

2 participants