summaryrefslogtreecommitdiff
path: root/internal/codeberg/codeberg.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-27 21:28:27 +0300
committerPaul Buetow <paul@buetow.org>2026-05-27 21:28:27 +0300
commit37aba4a930d9b3cf1dce817ed12a5f0f76c00fc8 (patch)
tree6cce6b622cc8720c60211d4277a8a6aace8c1928 /internal/codeberg/codeberg.go
parent5cedb6d00367463d68031e1b8b80446dffdbed04 (diff)
showcase: fix SVG viewport fill — use position:fixed and explicit px dimensions
width/height="100%" on a standalone SVG file resolves relative to the browser's default body element, which has 8px margins on all sides, so the SVG never actually reached the edges of the window. Fix: - Add style="position:fixed;top:0;left:0;display:block" to the <svg> root so it is taken out of normal flow and positioned flush against the viewport. - Have rescale() set explicit pixel width/height attributes (via window.innerWidth / window.innerHeight) instead of relying on percentage inheritance that was broken by the body margin. - Also remove a bare % sign from an inline JS comment to prevent fmt.Fprintf from misinterpreting it as a format verb. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/codeberg/codeberg.go')
0 files changed, 0 insertions, 0 deletions