Remove line breaks when displaying file names in the project panel (#10231)
- Fixed #8603 For the label title of the project panel, I find that there is no place to use to get the title of the label to do some operations, it should be safe to modify it, but I'm not sure how we need to modify the problem, I can think of two scenarios: 1. Modify every place where you don't want multiple lines to appear 2. Make the label only display a single line (e.g. provide a new parameter, or a new label type?)
This commit is contained in:
@@ -83,6 +83,7 @@ impl Item for ImageView {
|
||||
.to_string_lossy()
|
||||
.to_string();
|
||||
Label::new(title)
|
||||
.single_line()
|
||||
.color(if selected {
|
||||
Color::Default
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user