From f7f549f86d39c58031a726350fc921c270e96a2c Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 12 Sep 2024 17:40:25 +0800 Subject: [PATCH] enhance: change tooltip's alignment to `Top` to avoid issue #467 --- src/Views/WorkingCopy.axaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/Views/WorkingCopy.axaml b/src/Views/WorkingCopy.axaml index ebf4b069..60777e41 100644 --- a/src/Views/WorkingCopy.axaml +++ b/src/Views/WorkingCopy.axaml @@ -182,7 +182,9 @@ Classes="icon_button" Margin="4,0,0,0" Padding="0" Click="OnOpenCommitMessagePicker" - ToolTip.Tip="{DynamicResource Text.WorkingCopy.CommitMessageHelper}"> + ToolTip.Tip="{DynamicResource Text.WorkingCopy.CommitMessageHelper}" + ToolTip.Placement="Top" + ToolTip.VerticalOffset="0"> @@ -191,7 +193,9 @@ Width="32" Margin="4,2,0,0" Click="OnOpenAIAssist" - ToolTip.Tip="{DynamicResource Text.AIAssistant.Tip}"> + ToolTip.Tip="{DynamicResource Text.AIAssistant.Tip}" + ToolTip.Placement="Top" + ToolTip.VerticalOffset="0"> @@ -219,7 +223,9 @@ Padding="8,0" Command="{Binding Commit}" HotKey="{OnPlatform Ctrl+Enter, macOS=⌘+Enter}" - ToolTip.Tip="{OnPlatform Ctrl+Enter, macOS=⌘+Enter}"/> + ToolTip.Tip="{OnPlatform Ctrl+Enter, macOS=⌘+Enter}" + ToolTip.Placement="Top" + ToolTip.VerticalOffset="0"/>