Skip to content

Commit 882b6fd

Browse files
committed
rearrange section for ap
1 parent bde8545 commit 882b6fd

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/adapter.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,21 +89,21 @@ impl Adapter {
8989
None => false,
9090
};
9191

92-
let (device_block, access_point_block, connected_devices_block, help_block) = {
92+
let (access_point_block, connected_devices_block, device_block, help_block) = {
9393
let chunks = Layout::default()
9494
.direction(Direction::Vertical)
9595
.constraints(if any_connected_devices {
9696
&[
97-
Constraint::Percentage(33),
98-
Constraint::Percentage(33),
99-
Constraint::Percentage(33),
97+
Constraint::Length(5),
98+
Constraint::Fill(1),
99+
Constraint::Length(5),
100100
Constraint::Length(1),
101101
]
102102
} else {
103103
&[
104-
Constraint::Percentage(50),
105-
Constraint::Percentage(50),
106104
Constraint::Fill(1),
105+
Constraint::Length(0),
106+
Constraint::Length(5),
107107
Constraint::Length(1),
108108
]
109109
})

src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl App {
144144

145145
let focused_block = match current_mode {
146146
Mode::Station => FocusedBlock::KnownNetworks,
147-
_ => FocusedBlock::Device,
147+
_ => FocusedBlock::AccessPoint,
148148
};
149149

150150
Ok(Self {

0 commit comments

Comments
 (0)