gpui-component/crates/ui
Jason Lee c98e4f0521
checkbox: Add children to Radio, Checkbox to display long texts. (#724)
This change is going to solve the wrapped text line-height.

Before this change, the Label is must set `line-height: 100%` to render
at same line with the checkbox.

But if there have a long text in label, wrapped lines need more
line-height to leave lines spaces. But if we set line-height over the
100%, that the checkbox will not align horizontal center.

So, this change to use other child to solve this issue, we can set
line-height to the child not to the label.


<img width="1204" alt="image"
src="https://github.com/user-attachments/assets/981cf925-01c7-48d7-9dd2-881c727a1759"
/>
2025-03-20 19:12:48 +08:00
..
assets/fonts svg_img: Embed the font file (#401) 2024-11-08 15:45:00 +08:00
locales modal: Add confirm Modal with default Ok, Cancel buttons. (#558) 2025-01-20 17:42:05 +08:00
src checkbox: Add children to Radio, Checkbox to display long texts. (#724) 2025-03-20 19:12:48 +08:00
tests/fixtures dock: Add to support save left, right, bottom dock state. (#303) 2024-10-03 17:25:31 +08:00
Cargo.toml chore: Remove unused feature (#702) 2025-03-10 22:17:27 +08:00
default-colors.json Add Skeleton (#128) 2024-08-09 15:55:48 +08:00
LICENSE-APACHE Add Dock & Panel (#10) 2024-07-01 14:20:56 +08:00