chenbhao Claude Opus 4.6 commited on
Commit
ab32188
·
1 Parent(s): 412f992

fix: reduce blank rows below Kitty images by using placement c=/r= bounds

Browse files

Kitty placement now passes resolved character dimensions (charWidth,
charHeight) to limit the rendered image area. ImageBox uses pixel-derived
charHeight when loaded to avoid reserving too many Yoga rows.
LocalPicture.test.tsx computes pixelWidth/pixelHeight separately from
character dimensions for correct scaling.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

4 files changed +64 -14
Files changed (4)
src/ink-picture/__tests__/LocalPicture.test.tsx+40-9
src/ink-picture/components/ImageBox.tsx+9-3
src/ink-picture/components/image/Kitty.tsx+2-1
src/ink-picture/renderers/kitty.ts+13-1