mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
wrap asset title by word, not by letter
This commit is contained in:
@@ -420,7 +420,7 @@ impl AssetItemBuilder {
|
||||
TextBuilder::new(WidgetBuilder::new().with_margin(Thickness::uniform(2.0)))
|
||||
.with_vertical_text_alignment(VerticalAlignment::Center)
|
||||
.with_horizontal_text_alignment(HorizontalAlignment::Center)
|
||||
.with_wrap(WrapMode::Letter)
|
||||
.with_wrap(WrapMode::Word)
|
||||
.with_text(
|
||||
self.path
|
||||
.file_name()
|
||||
|
||||
Reference in New Issue
Block a user