From f3bbf79f4f9c3f466ff1c4b71598422e1c21aa33 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 13 Jun 2024 12:31:45 +0800 Subject: [PATCH] fix: only fix content margin on Windows platform after window maximized --- src/Resources/Styles.axaml | 4 ++++ src/Views/ChromelessWindow.cs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/Resources/Styles.axaml b/src/Resources/Styles.axaml index 219187cf..c08922e1 100644 --- a/src/Resources/Styles.axaml +++ b/src/Resources/Styles.axaml @@ -30,6 +30,10 @@ + + diff --git a/src/Views/ChromelessWindow.cs b/src/Views/ChromelessWindow.cs index 14501eba..7c4178c2 100644 --- a/src/Views/ChromelessWindow.cs +++ b/src/Views/ChromelessWindow.cs @@ -14,6 +14,8 @@ namespace SourceGit.Views { if (OperatingSystem.IsLinux()) Classes.Add("custom_window_frame"); + else if (OperatingSystem.IsWindows()) + Classes.Add("fix_maximized_padding"); } protected override void OnApplyTemplate(TemplateAppliedEventArgs e)