diff --git a/src/Files.App/Helpers/FilePropertiesHelpers.cs b/src/Files.App/Helpers/FilePropertiesHelpers.cs
index a901baae5aea..5460a45d9591 100644
--- a/src/Files.App/Helpers/FilePropertiesHelpers.cs
+++ b/src/Files.App/Helpers/FilePropertiesHelpers.cs
@@ -70,7 +70,7 @@ public static async Task OpenPropertiesWindowAsync(object item, IShellPage assoc
IsMaximizable = false,
MinWidth = 460,
MinHeight = 550,
- Width = 600,
+ Width = 800,
Height = 550,
Content = frame,
Backdrop = new WinUIEx.MicaSystemBackdrop(),
@@ -103,6 +103,7 @@ public static async Task OpenPropertiesWindowAsync(object item, IShellPage assoc
Y = displayArea.WorkArea.Y
+ Math.Max(0, Math.Min(displayArea.WorkArea.Height - appWindow.Size.Height, pointerPosition.Y - displayArea.WorkArea.Y)),
};
+
appWindow.Move(appWindowPos);
}
}
@@ -111,6 +112,7 @@ public static async Task OpenPropertiesWindowAsync(object item, IShellPage assoc
var dialog = new PropertiesDialog();
dialog.propertiesFrame.Tag = dialog;
Navigate(dialog.propertiesFrame);
+
await dialog.ShowAsync(ContentDialogPlacement.Popup);
}
diff --git a/src/Files.App/ResourceDictionaries/NavigationViewItemButtonStyle.xaml b/src/Files.App/ResourceDictionaries/NavigationViewItemButtonStyle.xaml
index ee3478425227..ab241370b9e8 100644
--- a/src/Files.App/ResourceDictionaries/NavigationViewItemButtonStyle.xaml
+++ b/src/Files.App/ResourceDictionaries/NavigationViewItemButtonStyle.xaml
@@ -57,6 +57,8 @@
1,1,1,1
40
+ 2,0,0,0
+ 2,0,0,2