Repository navigation
v0.0.0-alpha.15
Pre-release
Pre-release
Highlights
Two layout fixes for text and rows that went missing without any sign on screen, plus a falling-sand example.
- Wrapped text no longer loses characters. Text wrapped with x/ansi's
Wrap, which can leave a row wider than its width when a run of hyphens such as---reaches the end of it, and the box then cut the overflow off. Text, styled text, and tooltips now wrap with the same code as a viewport wrapped at words: at spaces, Unicode spaces included, after hyphens, and inside a word only when it is wider than the row. - A column too short for its rows cuts off the last ones. Children used to shrink in proportion, so one-line rows were rounded away from the middle: 20 rows in 6 lines showed rows 1, 4, 7, 11, 14, and 17. Columns and grids now keep the first rows at their size and cut off the rest, the way CSS clips flex items. A
Fillgives up its space first, so a footer after it keeps its line, andCollapsibleslots are dropped before any row is cut. - Rows keep a cell of every child while they can. Text cut short to fit still shares a row in proportion, but a small child, such as a one-cell separator, is no longer rounded away while the ones after it keep their space. When there isn't room for a cell each, the last children are cut off.
- Gaps follow what is shown. A child cut to nothing no longer keeps its gap, so the children before it get that space.
- A new falling-sand sandbox example, and a docs page on drawing cells with
Drawable.
Breaking: flex.Split takes a new flex.Shrinking argument, flex.ShrinkByBasis or flex.ShrinkFromEnd, which says how a deficit is taken.
Changelog
🐞 Bug Fixes
- 9a7c7d1: layout: cut off the last rows of a column too short for them (@lrstanley)
- b19949b: text: wrap text without losing a run of hyphens at the end of a row (@lrstanley)
📚 Documentation
- 7b14efb: examples: add a falling-sand sandbox example, and a page on Drawable (@lrstanley)
- 7b5737e: home: show the sandbox example in the gallery, in place of the dashboard (@lrstanley)
📦 Dependency Updates
1 change
- 153bea4: deps: bump steep and reel to v0.0.0-alpha.18 (@lrstanley)
Full changelog: v0.0.0-alpha.14...v0.0.0-alpha.15
📦 Install
go get bloomfx.dev/bloom@v0.0.0-alpha.15Docs: bloomfx.dev/bloom
💬 What to do next?
- 🙋♂️ Running into an issue or want a specific feature? Take a look here!
- ⌚ Find previous releases.
- 🔗 Other useful links: