fix: larger file info popup

This commit is contained in:
veeso
2025-06-10 14:26:36 +02:00
parent c0b32a1847
commit 3ce3ffee3d
2 changed files with 5 additions and 1 deletions

View File

@@ -414,6 +414,10 @@ impl FileInfoPopup {
texts
.add_col(TextSpan::from("Path: "))
.add_col(TextSpan::new(path.as_str()).fg(Color::Yellow));
texts
.add_row()
.add_col(TextSpan::from("Name: "))
.add_col(TextSpan::new(file.name()).fg(Color::Yellow));
if let Some(filetype) = file.extension() {
texts
.add_row()

View File

@@ -243,7 +243,7 @@ impl FileTransferActivity {
// make popup
self.app.view(&Id::SymlinkPopup, f, popup);
} else if self.app.mounted(&Id::FileInfoPopup) {
let popup = Popup(Size::Percentage(50), Size::Percentage(50)).draw_in(f.area());
let popup = Popup(Size::Percentage(80), Size::Percentage(50)).draw_in(f.area());
f.render_widget(Clear, popup);
// make popup
self.app.view(&Id::FileInfoPopup, f, popup);