Current State
The music toggle button is currently:
• Line 25:
position: fixed; top: 20px; left: 20px; - fixed position in top-left corner of viewport
• Line 86: Rendered at the body level, outside the grid
Plan
To move it to the top-left corner of the threerulecycle tile:
1. Move the button inside the TileCard component - it should be a child of
.tile-container (which already has
position: relative)
2. Change CSS from position: fixed to
position: absolute - so it's positioned relative to the tile container, not the viewport
3. Update the script - the button ID lookup stays the same, just the DOM location changes
Changes:
| File | Change | LOC |
|---|
| pt0/peatsite/GalleryIndexAI.jsx | Move button into TileCard, update CSS from fixed to absolute | ~3 lines changed |
Est: net +0 LOC (just moving things around)
Ready to implement?