Skip to content

Commit 8db908a

Browse files
committed
ux: show file path as tooltip in case of that the file's path is too long
Signed-off-by: leo <longshuang@msn.cn>
1 parent ebdad30 commit 8db908a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Views/BlameCommandPalette.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
<ListBox.ItemTemplate>
9090
<DataTemplate DataType="x:String">
91-
<Grid ColumnDefinitions="Auto,*" Background="Transparent" Tapped="OnItemTapped">
91+
<Grid ColumnDefinitions="Auto,*" Background="Transparent" Tapped="OnItemTapped" ToolTip.Tip="{Binding}">
9292
<Path Grid.Column="0"
9393
Width="12" Height="12"
9494
Data="{StaticResource Icons.File}"

src/Views/FileHistoryCommandPalette.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
<ListBox.ItemTemplate>
9090
<DataTemplate DataType="x:String">
91-
<Grid ColumnDefinitions="Auto,*" Background="Transparent" Tapped="OnItemTapped">
91+
<Grid ColumnDefinitions="Auto,*" Background="Transparent" Tapped="OnItemTapped" ToolTip.Tip="{Binding}">
9292
<Path Grid.Column="0"
9393
Width="12" Height="12"
9494
Data="{StaticResource Icons.File}"

src/Views/OpenFileCommandPalette.axaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
<ListBox.ItemTemplate>
9090
<DataTemplate DataType="x:String">
91-
<Grid ColumnDefinitions="Auto,*" Background="Transparent" Tapped="OnItemTapped">
91+
<Grid ColumnDefinitions="Auto,*" Background="Transparent" Tapped="OnItemTapped" ToolTip.Tip="{Binding}">
9292
<Path Grid.Column="0"
9393
Width="12" Height="12"
9494
Data="{StaticResource Icons.File}"

0 commit comments

Comments
 (0)