mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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,
|
||||
}
|
||||
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user