Skip to content

Fix SpecDiagram side view squashed to 31px#305

Open
PunchTheDev wants to merge 1 commit into
mainfrom
punch/spec-diagram-layout-fix
Open

Fix SpecDiagram side view squashed to 31px#305
PunchTheDev wants to merge 1 commit into
mainfrom
punch/spec-diagram-layout-fix

Conversation

@PunchTheDev
Copy link
Copy Markdown
Owner

Summary

Side view of SpecDiagram was rendering at 31×23 px on every consumer (Explorer, spec detail, HeroStats, SubmissionJourney). The constraint stats grid had w-full and was a sibling flex child of the diagrams row, collapsing the side view's flex-1 to a thumbnail.

Changes

  • SpecDiagram.tsx parent rewritten as a <div> wrapping (a) a flex gap-4 items-start row containing only the two SVGs, (b) the stats grid as a sibling block below. Side view now renders at 178–744px wide depending on container.
  • Both view headers (Side view, Front view) gain a dotted-underline tooltip naming the plane (XZ / YZ) and what each visual element represents.
  • Load arrow text labeled ↓ 149N + (downward) subline so direction is explicit (was just 149N).

Verification

  • Explorer side view: 31×23 → 178×130 (5.7× wider)
  • Spec detail side view: 31×23 → 744×160 (24× wider)
  • 0 new console errors
  • BACKLOG Spec detail → SpecDiagram and Explorer → Diagram rows flipped to ● ● ●

Constraint stats with w-full was a flex child of the diagrams row,
collapsing the side view's flex-1 to a thumbnail across every
consumer (Explorer, spec detail, HeroStats, SubmissionJourney).
Wrap diagrams in their own flex row; stats becomes a sibling block.
Side view + front view view-headers gain plane-axis tooltips; load
arrow labeled with downward direction.
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.

1 participant