Skip to content

fix: contain headshot floats per-bio with .child-entry wrapper#56

Merged
sanity merged 1 commit into
mainfrom
fix-headshot-per-entry-contain
May 27, 2026
Merged

fix: contain headshot floats per-bio with .child-entry wrapper#56
sanity merged 1 commit into
mainfrom
fix-headshot-per-entry-contain

Conversation

@sanity

@sanity sanity commented May 27, 2026

Copy link
Copy Markdown
Contributor

After #55, Ian's headshot on `/about/people/` ended up next to the footer rather than beside his bio. Root cause: the listing template emits each child's `

` and `
` as bare siblings, so Steven's tall float-right photo extended past his own short paragraph; Ian's image with `clear: right` then floated past the entire content area into the footer's row.

Fix:

  • Wrap each child page in `
    ` in `_default/list.html` (the template actually used for section pages — `single.html` was a red herring from an earlier debug pass).
  • Set `.child-entry { display: flow-root }` so each bio's float is contained.
  • Shrink the headshot to 160×160 (180×180 on mobile) so it fits comfortably beside short summary text.

Verified at 375 / 600 / 768 / 1024 / 1280 / 1600 px on a local Hugo build — at every desktop width both images now align to the same right edge, each beside its own bio.

[AI-assisted - Claude]

After #55 each bio's float-right image bled past the next h2 because
the listing template emitted h2 and content as bare siblings — Steven's
tall photo extended past his own paragraph and Ian's image with
clear:right floated past the entire content area, ending up next to
the footer instead of beside Ian's bio.

Wrap each child page in <section class="child-entry"> in list.html
(the actual template used for section pages — single.html was a red
herring) and set display: flow-root so floats are contained per bio.
Shrink the headshot to 160x160 (180x180 on mobile) so it fits next to
short summary text.

[AI-assisted - Claude]
@sanity sanity merged commit 474e8a3 into main May 27, 2026
2 checks passed
@sanity sanity deleted the fix-headshot-per-entry-contain branch May 27, 2026 17:22
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