- Add explicit IDs to mode tab buttons (modeImage, modePattern) - Bind click handlers directly by ID instead of querySelectorAll - Add type="button" to prevent form submit behavior - Change controls flex-wrap to wrap (was nowrap, hiding tabs on narrow screens) - Add user-select: none and z-index to tab buttons - Dedicated switchMode() function for cleaner state management Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| app.js | ||
| style.css | ||