description_list: Wrap description value if it’s too long (#779)

| Before | After |
| - | - |
| <img width="752" alt="SCR-20250408-nfvl"
src="https://github.com/user-attachments/assets/5ed558af-869a-4634-bbb5-80fc1481a15c"
/> | <img width="752" alt="SCR-20250408-ngcy"
src="https://github.com/user-attachments/assets/a5871af5-978b-421d-b608-12fa940a884c"
/> |
This commit is contained in:
Floyd Wang 2025-04-08 14:57:30 +08:00 committed by GitHub
parent 231e8ea2db
commit 206a1e049b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -293,6 +293,7 @@ impl RenderOnce for DescriptionList {
};
el.flex_1()
.overflow_x_hidden()
.child(
div()
.when(self.layout.is_horizontal(), |this| {