Skip to content

Fix/responsive svg scaling#35

Merged
splch merged 5 commits intomainfrom
fix/responsive-svg-scaling
Mar 21, 2026
Merged

Fix/responsive svg scaling#35
splch merged 5 commits intomainfrom
fix/responsive-svg-scaling

Conversation

@splch
Copy link
Copy Markdown
Owner

@splch splch commented Mar 21, 2026

No description provided.

splch added 5 commits March 20, 2026 22:20
SVG visualizations overflow on narrow screens because they use fixed
pixel width/height without viewBox. Add viewBox to circuit diagrams
and viz package SVGs so content scales instead of clipping, and add
a global article svg rule to cover containers that lacked responsive
styling (e.g. step-output, widget-output).
…delines

Replace half adder and full adder ASCII art pre-blocks in chapter 1
with hand-coded inline SVGs using defs/use for reusable gate symbols,
g groups for shared attributes, and CSS variables for dark mode.
Add accessibility via role="img" and title elements.

Add inline SVG diagram guidelines to chapter-prompt.md covering
viewBox, defs/use, symbol, grouping, CSS variables, and accessibility.
Redesign full adder circuit diagram with proper spacing calculated
from coordinate math: 45-90px routing channels between boxes, no
overlapping elements, all wires entering/exiting box left/right edges.
Add --color-* CSS variable aliases to gen-pdf.mjs so inline SVGs
render correctly in the PDF print context.
Add package.json with playwright and pdf-lib dependencies for PDF
generation. Add textbook-pdf make target that builds the textbook
and generates the PDF. Fix textbook-clean to also remove generated
chapter HTML files. Ignore .DS_Store and generated PDF.
Extract EXTRA_MODULES variable for the 7 separate Go modules and
use loops in test-all, lint, and vet instead of duplicated cd lines.
Add missing backend/google and backend/rigetti to all targets.
Add 8 missing fuzz targets (pulse, pulsesim, ionq, braket).
Add configurable FUZZ_TIME variable (default 30s).
Add -count=1 to coverage for fresh results.
Add section comments and multi-line .PHONY for readability.
@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.36%. Comparing base (fcce14a) to head (f19516e).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #35      +/-   ##
==========================================
+ Coverage   71.32%   71.36%   +0.03%     
==========================================
  Files         165      165              
  Lines       17544    17544              
==========================================
+ Hits        12514    12520       +6     
+ Misses       4064     4059       -5     
+ Partials      966      965       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@splch splch merged commit 06909dd into main Mar 21, 2026
6 checks passed
@splch splch deleted the fix/responsive-svg-scaling branch March 21, 2026 07:08
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