mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Bookmarks layout OK
This commit is contained in:
@@ -126,7 +126,7 @@ impl AuthActivity {
|
|||||||
let (width, height): (u16, u16) = match popup {
|
let (width, height): (u16, u16) = match popup {
|
||||||
PopupType::Alert(_, _) => (50, 10),
|
PopupType::Alert(_, _) => (50, 10),
|
||||||
PopupType::Help => (50, 70),
|
PopupType::Help => (50, 70),
|
||||||
PopupType::SaveBookmark => (40, 20),
|
PopupType::SaveBookmark => (20, 20),
|
||||||
PopupType::YesNo(_, _, _) => (30, 10),
|
PopupType::YesNo(_, _, _) => (30, 10),
|
||||||
};
|
};
|
||||||
let popup_area: Rect = self.draw_popup_area(f.size(), width, height);
|
let popup_area: Rect = self.draw_popup_area(f.size(), width, height);
|
||||||
@@ -140,7 +140,6 @@ impl AuthActivity {
|
|||||||
PopupType::SaveBookmark => {
|
PopupType::SaveBookmark => {
|
||||||
let popup_chunks = Layout::default()
|
let popup_chunks = Layout::default()
|
||||||
.direction(Direction::Vertical)
|
.direction(Direction::Vertical)
|
||||||
.margin(1)
|
|
||||||
.constraints(
|
.constraints(
|
||||||
[
|
[
|
||||||
Constraint::Length(3), // Input form
|
Constraint::Length(3), // Input form
|
||||||
|
|||||||
Reference in New Issue
Block a user