修复当文件管理路径显示过长时,屏幕会出界的问题

This commit is contained in:
张开科 2024-11-26 14:11:26 +08:00
parent 7845886261
commit 46bed5c92c

View File

@ -67,6 +67,7 @@ class Panel(ScreenPanel):
self.loading_msg = _('Loading...')
self.labels['path'] = Gtk.Label(label=self.loading_msg, vexpand=True, no_show_all=True)
self.labels['path'].set_ellipsize(Pango.EllipsizeMode.END)
self.labels['path'].show()
self.thumbsize = self._gtk.img_scale * self._gtk.button_image_scale * 2.5
logging.info(f"Thumbsize: {self.thumbsize}")