File browser, Path chooser: fix margin of the long folder name in the header (#8103)

* Filemanager: margin of the folder name in the header

* Menu: margin of the folder name in the header
This commit is contained in:
hius07
2021-08-22 10:35:22 +03:00
committed by GitHub
parent f2ce7d1f3a
commit 3c3361addf
2 changed files with 2 additions and 2 deletions

View File

@@ -134,7 +134,7 @@ function FileManager:setupLayout()
self.path_text = TextWidget:new{
face = Font:getFace("xx_smallinfofont"),
text = BD.directory(filemanagerutil.abbreviate(self.root_path)),
max_width = Screen:getWidth() - 2*Size.padding.small,
max_width = Screen:getWidth() - 2*Size.padding.large,
truncate_left = true,
}

View File

@@ -729,7 +729,7 @@ function Menu:init()
self.path_text = TextWidget:new{
face = Font:getFace("xx_smallinfofont"),
text = BD.directory(self.path),
max_width = self.inner_dimen.w - 2*Size.padding.small,
max_width = self.inner_dimen.w - 2*Size.padding.large,
truncate_left = true,
}
path_text_container = CenterContainer:new{