Skip to content

Commit 974c30b

Browse files
committed
ux: tooltip icon position
Signed-off-by: leo <longshuang@msn.cn>
1 parent 11351af commit 974c30b

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

src/Views/Preferences.axaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -758,12 +758,13 @@
758758
</TextBox>
759759

760760
<TextBlock Margin="0,12,0,0" Text="{DynamicResource Text.Configure.CustomAction.Arguments}"/>
761-
<Grid Margin="0,4,0,0" ColumnDefinitions="*,Auto">
762-
<TextBox Grid.Column="0" CornerRadius="3" Height="28" Text="{Binding Arguments, Mode=TwoWay}"/>
763-
<Border Grid.Column="1" Width="22" Height="28" Background="Transparent" VerticalAlignment="Center" ToolTip.Tip="{DynamicResource Text.Configure.CustomAction.Arguments.Tip}">
764-
<Path Width="14" Height="14" Data="{StaticResource Icons.Info}"/>
765-
</Border>
766-
</Grid>
761+
<TextBox Margin="0,4,0,0" Height="28" CornerRadius="3" Text="{Binding Arguments, Mode=TwoWay}">
762+
<TextBox.InnerRightContent>
763+
<Border Width="28" Height="28" Background="Transparent" VerticalAlignment="Center" ToolTip.Tip="{DynamicResource Text.Configure.CustomAction.Arguments.Tip}">
764+
<Path Width="14" Height="14" Data="{StaticResource Icons.Info}" Fill="{DynamicResource Brush.FG1}"/>
765+
</Border>
766+
</TextBox.InnerRightContent>
767+
</TextBox>
767768

768769
<CheckBox Margin="0,8,0,0" Content="{DynamicResource Text.Configure.CustomAction.WaitForExit}" IsChecked="{Binding WaitForExit, Mode=TwoWay}"/>
769770
</StackPanel>

src/Views/RepositoryConfigure.axaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -514,12 +514,13 @@
514514
</TextBox>
515515

516516
<TextBlock Margin="0,12,0,0" Text="{DynamicResource Text.Configure.CustomAction.Arguments}"/>
517-
<Grid Margin="0,4,0,0" ColumnDefinitions="*,Auto">
518-
<TextBox Grid.Column="0" CornerRadius="3" Height="28" Text="{Binding Arguments, Mode=TwoWay}"/>
519-
<Border Grid.Column="1" Width="22" Height="28" Background="Transparent" VerticalAlignment="Center" ToolTip.Tip="{DynamicResource Text.Configure.CustomAction.Arguments.Tip}">
520-
<Path Width="14" Height="14" Data="{StaticResource Icons.Info}"/>
521-
</Border>
522-
</Grid>
517+
<TextBox Margin="0,4,0,0" Height="28" CornerRadius="3" Text="{Binding Arguments, Mode=TwoWay}">
518+
<TextBox.InnerRightContent>
519+
<Border Width="28" Height="28" Background="Transparent" VerticalAlignment="Center" ToolTip.Tip="{DynamicResource Text.Configure.CustomAction.Arguments.Tip}">
520+
<Path Width="14" Height="14" Data="{StaticResource Icons.Info}" Fill="{DynamicResource Brush.FG1}"/>
521+
</Border>
522+
</TextBox.InnerRightContent>
523+
</TextBox>
523524

524525
<CheckBox Margin="0,8,0,0" Content="{DynamicResource Text.Configure.CustomAction.WaitForExit}" IsChecked="{Binding WaitForExit, Mode=TwoWay}"/>
525526
</StackPanel>

0 commit comments

Comments
 (0)