Repository navigation
A box round a picture fits it in a terminal too - #51
Conversation
A Frame whose body is only an unfloated Figure, laid out for a reader shown the picture, drops its padding and is as wide as the picture or its title, matching the HTML ms-box-picture. It was drawn across the whole width with the picture in its left corner. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DLuNT88dr1ZgRLtgLnCHwr
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (4)
Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour. Your free on-demand review promotion remains active until October 9, 2026 at 6:00 PM UTC. WalkthroughStandalone pictures in frames now use a width based on the picture or title when picture dimensions are available. Other figure content and unavailable pictures retain the configured frame width. ChangesStandalone picture frame sizing
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The supplied evidence identifies no issue that needs resolution before merging. Runtime behavior remains untested in the supplied review. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
2.14.2 (#51) fitted a box holding only a picture to the picture. In a scene log that box stood narrower than every other pose's box and rule. It is drawn across the width again, with its padding, and the picture at its left. HTML keeps fitting it (ms-box-picture). This reverts the Frame and Figure parts of 62345a3. Claude-Session: https://claude.ai/code/session_018ztDNVgzxM8V5WKWBRs2EW Co-authored-by: Claude <noreply@anthropic.com>
Requested by Grave · project thread
Before: in a terminal that draws pictures (Kitty, iTerm2, sixel, block art),
box(figure(...))was drawn across the whole width with the picture in its left corner, so the box stood wider than the rules and lines around it. The portal already fit the box to the picture (#47).After: a
Framewhose body is only an unfloatedFigure, laid out for a reader shown the picture, has no padding and is as wide as the picture, or its title when that is wider. A reader shown the art or the description still gets the box across the width.How:
Figure.PictureWidthanswers how many cells the picture takes for this reader (the same decisionDrawmakes), andFrame.Drawnarrows itself to that. Tests cover the fitted box, a title wider than the picture, and a reader not shown the picture.🤖 Generated with Claude Code
https://claude.ai/code/session_01DLuNT88dr1ZgRLtgLnCHwr
Generated by Claude Code
Summary by CodeRabbit