Skip to content

fix(layout): hug fits content for groups too + CI actions v6 (0.0.44)#46

Merged
gyng merged 1 commit into
mainfrom
fix/hug-groups-and-ci-actions
Jun 14, 2026
Merged

fix(layout): hug fits content for groups too + CI actions v6 (0.0.44)#46
gyng merged 1 commit into
mainfrom
fix/hug-groups-and-ci-actions

Conversation

@gyng

@gyng gyng commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Problem

Follow-up to v0.0.43: the Network widget (a group) still clipped at hug. Two reasons:

  1. v0.0.43's min-content floor was scoped to fill-meter leaves — groups were excluded.
  2. The group size control's "hug" set basis: undefined, which skips the floor entirely (falls back to the stored size). So hugging a group never floored at content — it pinned to the stale stored size (your saved widget's was 104, content ~148).

Fix

  • flowStyle.ts — include groups in the content-basis min-content floor. A hugged group now sits at max(stored size, its content).
  • Inspector.tsx — the group "hug" option sets basis: 'content' (was undefined) and is relabelled "hug — fit content", so the floor is reachable from the UI.
  • CIactions/checkout + actions/setup-node bumped v4 → v6 (clears the Node 20-deprecation warning) in both workflows.

Verification

  • type-check, lint, 1318 unit tests (added a content-basis group flowStyle test), build — green.
  • Real-browser e2e: 32 passed (clean).
  • This PR's own CI run also validates the upgraded checkout/setup-node actions.

For an existing Network widget saved at fr basis: set it to "hug — fit content" to pick up the floor (or it can stay fr and be given more room).

🤖 Generated with Claude Code

…(0.0.44)

v0.0.43 floored content-basis FILL meters at min-content, but GROUPS (a dropped
template / nested layout — e.g. the Network widget) were excluded, AND the group "hug"
option set basis:undefined (skipping the floor entirely). So hugging a group still
clipped to its stored size — the reported Network "hug still clipping".

- flowStyle.ts: include groups in the content-basis min-content floor — a hugged group
  sits at max(stored size, its content).
- Inspector.tsx: the group size control's "hug" now sets basis:'content' (was undefined)
  and is relabelled "hug — fit content", so the floor is actually reachable from the UI.
- CI: bump actions/checkout + actions/setup-node v4 → v6 (clears the Node 20 deprecation).

Verified: type-check, lint, 1318 unit tests (flowStyle group test added), build, and the
real-browser e2e (32 passed). An existing Network widget saved at fr basis should be set to
"hug — fit content" to pick this up.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gyng gyng merged commit e092246 into main Jun 14, 2026
3 checks passed
@gyng gyng deleted the fix/hug-groups-and-ci-actions branch June 14, 2026 21:51
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