Mermaid diagrams too small on 4K displays #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
Standalone -- discovered during regular use on a 4K display.
Repo
ldraney/mdviewUser Story
As a user with a 4K display
I want to view mermaid diagrams at full screen
So that I can read them without zooming the browser
Context
Mermaid diagrams render within the 48rem readable column. On high-DPI / 4K displays this makes the diagrams tiny -- users have to ctrl++ zoom to read them, which zooms the entire page. A fullscreen overlay lets the diagram scale to the viewport independently.
File Targets
Files the agent should modify or create:
app/javascript/controllers/mermaid_controller.js-- add fullscreen button and overlay logicapp/assets/stylesheets/application.css-- styles for button, overlay, and scaled SVGFiles the agent should NOT touch:
app/views/-- no template changes needed, button is injected via JSAcceptance Criteria
Test Expectations
Constraints
Checklist
Related