From 62ecbdd40b00584f83f7f0cf775aec68db125815 Mon Sep 17 00:00:00 2001 From: Robbert Verbruggen Date: Wed, 7 Apr 2021 13:33:01 +0200 Subject: [PATCH] Responsive Delete button The Delete button is now responsive if large quantities of mails are selected. This is implemented using a StackPanel around the Buttons, giving the Delete button a MinWidth instead of a Width and setting all Margins on the buttons to 4,0,0,9 because the margin is now relative to the other (previous) button. --- src/Papercut.UI/Views/MainView.xaml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/Papercut.UI/Views/MainView.xaml b/src/Papercut.UI/Views/MainView.xaml index 277e63e0..85e3f9de 100644 --- a/src/Papercut.UI/Views/MainView.xaml +++ b/src/Papercut.UI/Views/MainView.xaml @@ -144,24 +144,25 @@ HorizontalAlignment="Stretch" IsEnabled="{Binding Path=MessageListViewModel.HasSelectedMessage}" /> - + - + +