Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wiiznokes committed Nov 18, 2024
1 parent 7959933 commit 0d4b30a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 38 deletions.
46 changes: 18 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 14 additions & 8 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,13 @@ impl AppState {
..Default::default()
})
} else {
let mut popup_settings =
self.core
.applet
.get_popup_settings(Id::RESERVED, new_id, None, None, None);
let mut popup_settings = self.core.applet.get_popup_settings(
self.core.main_window_id().unwrap(),
new_id,
None,
None,
None,
);

popup_settings.positioner.size_limits = Limits::NONE
.max_width(400.0)
Expand All @@ -167,10 +170,13 @@ impl AppState {
}
}
PopupKind::QuickSettings => {
let mut popup_settings =
self.core
.applet
.get_popup_settings(Id::RESERVED, new_id, None, None, None);
let mut popup_settings = self.core.applet.get_popup_settings(
self.core.main_window_id().unwrap(),
new_id,
None,
None,
None,
);

popup_settings.positioner.size_limits = Limits::NONE
.max_width(250.0)
Expand Down
14 changes: 12 additions & 2 deletions src/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,21 @@ impl AppState {
column()
.push(self.top_bar())
.push(self.content())
.width(Length::Fill)
.height(Length::Fill)
.spacing(20)
.padding(10)
.align_x(Alignment::Center)
// .width(Length::Fill)
// .height(Length::Fill)
.height(if self.config.horizontal {
Length::Fill
} else {
Length::Fixed(530f32)
})
.width(if self.config.horizontal {
Length::Fill
} else {
Length::Fixed(400f32)
})
.into()
}

Expand Down

0 comments on commit 0d4b30a

Please sign in to comment.