mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Removed header from filetransfer activity
This commit is contained in:
@@ -48,7 +48,6 @@ impl FileTransferActivity {
|
|||||||
.margin(2)
|
.margin(2)
|
||||||
.constraints(
|
.constraints(
|
||||||
[
|
[
|
||||||
Constraint::Length(5), // Header
|
|
||||||
Constraint::Length(20), // Explorer
|
Constraint::Length(20), // Explorer
|
||||||
Constraint::Length(16), // Log
|
Constraint::Length(16), // Log
|
||||||
]
|
]
|
||||||
@@ -59,9 +58,7 @@ impl FileTransferActivity {
|
|||||||
let tabs_chunks = Layout::default()
|
let tabs_chunks = Layout::default()
|
||||||
.constraints([Constraint::Percentage(50), Constraint::Percentage(50)].as_ref())
|
.constraints([Constraint::Percentage(50), Constraint::Percentage(50)].as_ref())
|
||||||
.direction(Direction::Horizontal)
|
.direction(Direction::Horizontal)
|
||||||
.split(chunks[1]);
|
.split(chunks[0]);
|
||||||
// Draw header
|
|
||||||
f.render_widget(self.draw_header(), chunks[0]);
|
|
||||||
// Set localhost state
|
// Set localhost state
|
||||||
let mut localhost_state: ListState = ListState::default();
|
let mut localhost_state: ListState = ListState::default();
|
||||||
localhost_state.select(Some(self.local.index));
|
localhost_state.select(Some(self.local.index));
|
||||||
@@ -89,8 +86,8 @@ impl FileTransferActivity {
|
|||||||
log_state.select(Some(self.log_index));
|
log_state.select(Some(self.log_index));
|
||||||
// Draw log
|
// Draw log
|
||||||
f.render_stateful_widget(
|
f.render_stateful_widget(
|
||||||
self.draw_log_list(chunks[2].width),
|
self.draw_log_list(chunks[1].width),
|
||||||
chunks[2],
|
chunks[1],
|
||||||
&mut log_state,
|
&mut log_state,
|
||||||
);
|
);
|
||||||
// Draw popup
|
// Draw popup
|
||||||
@@ -139,14 +136,6 @@ impl FileTransferActivity {
|
|||||||
self.context = Some(ctx);
|
self.context = Some(ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// ### draw_header
|
|
||||||
///
|
|
||||||
/// Draw header
|
|
||||||
pub(super) fn draw_header(&self) -> Paragraph {
|
|
||||||
Paragraph::new(" _____ ____ ____ ____ \n|_ _|__ _ __ _ __ ___ / ___| / ___| _ \\ \n | |/ _ \\ '__| '_ ` _ \\\\___ \\| | | |_) |\n | | __/ | | | | | | |___) | |___| __/ \n |_|\\___|_| |_| |_| |_|____/ \\____|_| \n")
|
|
||||||
.style(Style::default().fg(Color::White).add_modifier(Modifier::BOLD))
|
|
||||||
}
|
|
||||||
|
|
||||||
/// ### draw_local_explorer
|
/// ### draw_local_explorer
|
||||||
///
|
///
|
||||||
/// Draw local explorer list
|
/// Draw local explorer list
|
||||||
|
|||||||
Reference in New Issue
Block a user