Skip to content

Commit 73e1dc5

Browse files
committed
app: put all notification blocks in one container
1 parent 9bde06a commit 73e1dc5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

crates/companion-app/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -384,9 +384,8 @@ fn view(state: &State) -> Element<'_, Message> {
384384
// todo: show something when no profiles found
385385
text("Found profiles:").size(20),
386386
Column::from_iter(profiles),
387-
server_ok_block,
388-
app_update_block,
389-
config_reset_block,
387+
// using separate nested column to prevent spacing between empty elements
388+
column![server_ok_block, app_update_block, config_reset_block],
390389
row![
391390
button("Register").on_press_maybe(
392391
if state.server_ok

0 commit comments

Comments
 (0)