description_list: Fix incorrect align items for horizontal layout (#730)

| Before | After |
| - | - |
| <img width="539" alt="image"
src="https://github.com/user-attachments/assets/ecd997b5-1f59-4c41-83a3-dfdee6b1be8a"
/> | <img width="556" alt="image"
src="https://github.com/user-attachments/assets/1088d466-1635-45c3-b578-9ada1c960d66"
/> |
This commit is contained in:
Floyd Wang 2025-03-24 17:15:46 +08:00 committed by GitHub
parent 12e3678e55
commit 760c0597eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -52,7 +52,7 @@ impl Example {
1,
),
(
"Platform",
"This is a long label for Platform",
"macOS, Windows, Linux",
1,
),

View file

@ -289,7 +289,7 @@ impl RenderOnce for DescriptionList {
let el = if self.layout.is_vertical() {
v_flex()
} else {
h_flex().h_full()
div().flex().flex_row().h_full()
};
el.flex_1()