Give presenter menu more height for direct Quit access

This commit is contained in:
Dandaedre 2026-11-20 08:32:42 +01:00
parent 3066e82e51
commit a12f75a7d9
4 changed files with 11 additions and 3 deletions

2
Cargo.lock generated
View File

@ -2245,7 +2245,7 @@ dependencies = [
[[package]]
name = "pdf-presenter"
version = "0.1.58"
version = "0.1.59"
dependencies = [
"bytemuck",
"chrono",

View File

@ -4,7 +4,7 @@ default-members = ["crates/pdf-presenter"]
resolver = "3"
[workspace.package]
version = "0.1.58"
version = "0.1.59"
edition = "2024"
license = "MIT"
repository = "https://proxy.dandaedre.com/gitea/idle-org/pdf-presenter"

View File

@ -975,7 +975,9 @@ pub fn presenter(ui: &mut Ui, s: &mut Studio, native: &mut UiState) {
.open_bool(&mut menu_open)
.show(|ui| {
egui::ScrollArea::vertical()
.max_height(520.)
.max_height(
(screen.bottom() - trigger.rect.bottom() - 16.).clamp(80., 720.),
)
.show(ui, |ui| menu(ui, s));
});
s.menu_open = menu_open;

View File

@ -2,6 +2,12 @@
## Unreleased
### 0.1.59
- Increase the Menu dropdown height from 520 to 720 logical pixels so Quit stays
accessible without scrolling on taller screens. Limit it to the space below
its button and retain scrolling on smaller windows.
### 0.1.58
- Double-click an unzoomed current preview or presentation output to fit the page