Skip to content

Commit

Permalink
Fix text wrapping in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
JumpyLionnn committed Oct 22, 2023
1 parent 5213366 commit 7646ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl EnchantedView {
let text = format!("{:.2}%", self.image.as_ref().and_then(|opened_image| Ok(opened_image.display.scale)).unwrap_or(1.0) * 100.0);
DropDownMenu::new(text, "zoom_display")
.width(ui.available_width())
.menu_width(120.0)
.menu_width(130.0)
.ui(ui, |ui| {
if ui.add(Button::new("View actual size").shortcut_text(ui.ctx().format_shortcut(&self.settings.key_binds.zoom_to_original))).clicked() {
if let Ok(opened_image) = &mut self.image {
Expand Down

0 comments on commit 7646ce1

Please sign in to comment.