mirror of
https://github.com/veeso/termscp.git
synced 2025-12-06 17:15:35 -08:00
fix: larger file info popup
This commit is contained in:
@@ -414,6 +414,10 @@ impl FileInfoPopup {
|
|||||||
texts
|
texts
|
||||||
.add_col(TextSpan::from("Path: "))
|
.add_col(TextSpan::from("Path: "))
|
||||||
.add_col(TextSpan::new(path.as_str()).fg(Color::Yellow));
|
.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() {
|
if let Some(filetype) = file.extension() {
|
||||||
texts
|
texts
|
||||||
.add_row()
|
.add_row()
|
||||||
|
|||||||
@@ -243,7 +243,7 @@ impl FileTransferActivity {
|
|||||||
// make popup
|
// make popup
|
||||||
self.app.view(&Id::SymlinkPopup, f, popup);
|
self.app.view(&Id::SymlinkPopup, f, popup);
|
||||||
} else if self.app.mounted(&Id::FileInfoPopup) {
|
} 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);
|
f.render_widget(Clear, popup);
|
||||||
// make popup
|
// make popup
|
||||||
self.app.view(&Id::FileInfoPopup, f, popup);
|
self.app.view(&Id::FileInfoPopup, f, popup);
|
||||||
|
|||||||
Reference in New Issue
Block a user