notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit 8a9243bdcc00ea26293e25bd038d4e14bca6842a
parent 5e5dc3ba3acce26680f2476987c6d1d5e1c4390d
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 17 Feb 2026 14:44:31 -0800

move permission buttons to left-to-right layout

Changed permission_buttons from right-to-left to left-to-right
layout so Allow/Deny buttons appear at the bottom left instead
of top right, making them easier to reach on mobile.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Diffstat:
Mcrates/notedeck_dave/src/ui/dave.rs | 22+++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/crates/notedeck_dave/src/ui/dave.rs b/crates/notedeck_dave/src/ui/dave.rs @@ -593,9 +593,19 @@ impl<'a> DaveUi<'a> { ) { let shift_held = ui.input(|i| i.modifiers.shift); - ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { + ui.with_layout(egui::Layout::left_to_right(egui::Align::Center), |ui| { let button_text_color = ui.visuals().widgets.active.fg_stroke.color; + // Allow button (green) with integrated keybind hint + let allow_response = super::badge::ActionButton::new( + "Allow", + egui::Color32::from_rgb(34, 139, 34), + button_text_color, + ) + .keybind("1") + .show(ui) + .on_hover_text("Press 1 to allow, Shift+1 to allow with message"); + // Deny button (red) with integrated keybind hint let deny_response = super::badge::ActionButton::new( "Deny", @@ -621,16 +631,6 @@ impl<'a> DaveUi<'a> { } } - // Allow button (green) with integrated keybind hint - let allow_response = super::badge::ActionButton::new( - "Allow", - egui::Color32::from_rgb(34, 139, 34), - button_text_color, - ) - .keybind("1") - .show(ui) - .on_hover_text("Press 1 to allow, Shift+1 to allow with message"); - if allow_response.clicked() { if shift_held { // Shift+click: enter tentative accept mode