typst-bytefield icon indicating copy to clipboard operation
typst-bytefield copied to clipboard

Flag label wrapping at bit column width despite being rotated

Open HerrCraziDev opened this issue 9 months ago • 0 comments

Using the flag() function, labels that exceed a single bit width are wrapped despite being rotated and thus fitting vertically, as shown in the first screenshot.

Image fig. 1: Label wrapping incorrectly

Adding reflow: true in rotate() (line 95 of api.typ) fixes the incorrect wrapping.

Image fig. 2 : Correct labelling

I'll open a PR later if I don't forget, but lemme know if such a small fix really warrants a PR.

HerrCraziDev avatar Mar 27 '25 15:03 HerrCraziDev