From 22f61cd8363598e99f7b905fd75f2becbdcb9fb4 Mon Sep 17 00:00:00 2001
From: Zhang Dian <54255897+zdpcdt@users.noreply.github.com>
Date: Sat, 4 Jan 2025 12:49:10 +0800
Subject: [PATCH] fix: fix Menu RepeatButton MaxHeight value.
---
src/Semi.Avalonia/Controls/Menu.axaml | 20 +++++++++++---------
src/Semi.Avalonia/Themes/Shared/Menu.axaml | 8 ++++----
2 files changed, 15 insertions(+), 13 deletions(-)
diff --git a/src/Semi.Avalonia/Controls/Menu.axaml b/src/Semi.Avalonia/Controls/Menu.axaml
index f4f111f..4c9da91 100644
--- a/src/Semi.Avalonia/Controls/Menu.axaml
+++ b/src/Semi.Avalonia/Controls/Menu.axaml
@@ -23,21 +23,22 @@
BorderThickness="0"
Command="{Binding LineUp, RelativeSource={RelativeSource TemplatedParent}}"
CornerRadius="0"
+ MinHeight="0"
DockPanel.Dock="Top"
RenderTransform="{x:Null}">
-
+
@@ -49,20 +50,21 @@
Command="{Binding LineDown, RelativeSource={RelativeSource TemplatedParent}}"
CornerRadius="0"
DockPanel.Dock="Bottom"
+ MinHeight="0"
RenderTransform="{x:Null}">
-
+
@@ -287,7 +289,7 @@
+ Margin="4" Width="6" Height="6" />
@@ -297,7 +299,7 @@
-
+
@@ -396,4 +398,4 @@
-
+
\ No newline at end of file
diff --git a/src/Semi.Avalonia/Themes/Shared/Menu.axaml b/src/Semi.Avalonia/Themes/Shared/Menu.axaml
index 07044ec..e486243 100644
--- a/src/Semi.Avalonia/Themes/Shared/Menu.axaml
+++ b/src/Semi.Avalonia/Themes/Shared/Menu.axaml
@@ -1,8 +1,8 @@
-
-
+
+
-
+
0 4
@@ -16,7 +16,7 @@
1
- 0 0 12 0
+ 0 0 8 0
4 0
4 0
\ No newline at end of file