summaryrefslogtreecommitdiffstats
path: root/assets/js/theme-toggle.js
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-10 12:14:57 +0200
committerDanilo M. <danix@danix.xyz>2026-04-10 12:14:57 +0200
commit474494b80592163a06df5fde3d282e37da00b045 (patch)
tree20703c98cfbc024638252c18fc3517a9556700fc /assets/js/theme-toggle.js
parent06083567247d15fec3d7620de995ca78911954c3 (diff)
downloaddanixxyz-theme-474494b80592163a06df5fde3d282e37da00b045.tar.gz
danixxyz-theme-474494b80592163a06df5fde3d282e37da00b045.zip
fix: improve matrix canvas sizing and z-index for hero section
- Add z-index: 1 to matrix canvas to ensure it renders above the dot grid background but below content - Add display: block to ensure canvas renders properly - Fix canvas sizing logic to use getBoundingClientRect() as primary method for hero mode, with fallbacks to offsetWidth/height and viewport dimensions - This ensures the canvas gets proper dimensions even if offset measurements are unavailable during initialization Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'assets/js/theme-toggle.js')
0 files changed, 0 insertions, 0 deletions