Skip to content

Fixing the hackernews logo#32

Closed
jaytaph wants to merge 9 commits into
rgb-fixfrom
image-fix
Closed

Fixing the hackernews logo#32
jaytaph wants to merge 9 commits into
rgb-fixfrom
image-fix

Conversation

@jaytaph

@jaytaph jaytaph commented Jun 14, 2026

Copy link
Copy Markdown
Owner

This is a very specific fix for getting the hackernews logo [Y] rendered properly on the screen. It will fix more issues with other images, svg's and tables, but we focused on one specific image for now.

jaytaph added 9 commits June 29, 2026 19:34
Make sure that everything is always in the correct pixel format
* Nested tables: post_process_tables ran pre-order (needed for width, which
  flows top-down), so an outer cell was sized before the table nested inside it
  was laid out — the cell stayed at its stale Taffy height and the inner table
  overflowed it (the HN logo poked out the bottom of the orange bar). Add a
  second, post-order pass and make layout_cell account for a contained nested
  table's height, so height propagates bottom-up.

* Column sizing: a specified `width` could shrink a column below its content's
  min-width, clipping a wider image and eating the cell's padding. Use
  max(specified, min-content); include the image's full border-box width and
  the cell's own horizontal padding in the intrinsic content width.
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