Marshall Bowers
|
a8afc63a91
|
gpui: Remove use of use gpui::* in examples (#22311)
This PR removes the use of `use gpui::*` in the GPUI examples, as this
is not how consumers should be importing GPUI.
Release Notes:
- N/A
|
2024-12-20 23:09:30 +00:00 |
|
Jason Lee
|
ee96d69e37
|
gpui: Fix CJK line wrap for GPUI text render (#17737)
Release Notes:
- N/A
This changes is going to let GPUI render correct text wrapping for CJK
characters. We was done this in PR #11296 for Editor, but this is also
need support for other text renders.
| Before | After |
| --- | --- |
| <img width="488" alt="SCR-20240912-jtvo"
src="https://github.com/user-attachments/assets/d061669c-62ab-4a7e-a724-2df84815d1ed">
| <img width="438" alt="image"
src="https://github.com/user-attachments/assets/ec27fd80-69db-48b6-8ade-694cd65d1843">
|
|
2024-09-12 15:55:03 -04:00 |
|
Jason Lee
|
0835d456dc
|
gpui: Fix text ellipsis appearing even the flex element has space (#17149)
Release Notes:
- N/A
There was a calculation bug before. When we added `text_ellipsis` to the
flex element, it would always show ellipsis no matter how long it was.
Actually we can't use `flex` and `text_ellipsis` at same time, the CSS
also not support this. But this bug will let user confuse.
### Before
<img width="731" alt="image"
src="https://github.com/user-attachments/assets/b7d60017-6785-45f5-8b40-dd5efa154a1e">
### After
<img width="521" alt="image"
src="https://github.com/user-attachments/assets/a3117793-284e-48d4-8c15-059fe61abe60">
|
2024-08-30 09:01:46 -04:00 |
|
Jason Lee
|
938d93a64c
|
gpui: Add truncate and text_ellipsis to TextStyle (#14850)
Release Notes:
- N/A
Ref issue #4996
## Demo
```
cargo run -p gpui --example text_wrapper
```
https://github.com/user-attachments/assets/a7fcebf7-f287-4517-960d-76b12722a2d7
---------
Co-authored-by: Marshall Bowers <elliott.codes@gmail.com>
|
2024-08-23 14:02:51 -04:00 |
|