From c1e58d5e71fe5f4cc8296e7b187a67430c8d18a7 Mon Sep 17 00:00:00 2001 From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com> Date: Wed, 11 Sep 2024 15:56:05 +0800 Subject: [PATCH] fix:fix Toast Alignments. --- src/Ursa.Themes.Semi/Controls/Toast.axaml | 5 ++++- src/Ursa.Themes.Semi/Themes/Shared/Toast.axaml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Ursa.Themes.Semi/Controls/Toast.axaml b/src/Ursa.Themes.Semi/Controls/Toast.axaml index 7ba3b5b..fb62795 100644 --- a/src/Ursa.Themes.Semi/Controls/Toast.axaml +++ b/src/Ursa.Themes.Semi/Controls/Toast.axaml @@ -31,7 +31,6 @@ - @@ -47,6 +46,7 @@ BorderBrush="{TemplateBinding BorderBrush}" MinHeight="{DynamicResource ToastCardMinHeight}" Padding="{DynamicResource ToastCardPadding}" + VerticalAlignment="Top" BoxShadow="{DynamicResource NotificationCardBoxShadows}" CornerRadius="{TemplateBinding CornerRadius}"> @@ -55,6 +55,8 @@ Grid.Column="0" Width="{DynamicResource NotificationCardIconWidth}" Height="{DynamicResource NotificationCardIconHeight}" + Margin="{DynamicResource ToastCardIconMargin}" + VerticalAlignment="Top" IsVisible="False" Data="{DynamicResource NotificationCardInformationIconPathData}" /> diff --git a/src/Ursa.Themes.Semi/Themes/Shared/Toast.axaml b/src/Ursa.Themes.Semi/Themes/Shared/Toast.axaml index d6eb92a..cf8622f 100644 --- a/src/Ursa.Themes.Semi/Themes/Shared/Toast.axaml +++ b/src/Ursa.Themes.Semi/Themes/Shared/Toast.axaml @@ -3,6 +3,7 @@ 40 12 8 12 + 0 2 0 0 600 12 0