diff --git a/src/gui/mod.rs b/src/gui/mod.rs index c25c5a9..5016771 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -595,11 +595,12 @@ impl PixelPassApp { ui.label("Paste the share code you received:"); ui.add_space(4.0); - // Field fills the row, with a Paste button pinned to its right — the - // read-side mirror of the host's Copy button (one click grabs the code - // the host just put on the clipboard). + // A Paste button (read-side mirror of the host's Copy button — one + // click grabs the code the host just put on the clipboard) with the + // field filling the rest of the row. A single horizontal row, so it + // doesn't grab the panel's full height. let ticket_resp = ui - .with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { + .horizontal(|ui| { if ui.button("📋 Paste").clicked() && let Some(text) = get_clipboard() {