Skip to content

Commit 56c9b8e

Browse files
committed
ux: try to convert repo path to relative path to user's home
Signed-off-by: leo <longshuang@msn.cn>
1 parent 29db0af commit 56c9b8e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Views/Welcome.axaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@
141141
IsChecked="{Binding IsExpanded}"
142142
IsVisible="{Binding !IsRepository}"/>
143143

144-
<StackPanel Grid.Column="2" Orientation="Horizontal">
144+
<StackPanel Grid.Column="2" Orientation="Horizontal" ClipToBounds="True">
145145
<TextBlock VerticalAlignment="Center" Text="{Binding Name}"/>
146-
<TextBlock Margin="4,0,0,0" VerticalAlignment="Center" Foreground="{DynamicResource Brush.FG2}" Text="{Binding Id, StringFormat=({0})}">
146+
<TextBlock Margin="4,0,0,0" VerticalAlignment="Center" Foreground="{DynamicResource Brush.FG2}" Text="{Binding Id, StringFormat=({0}), Converter={x:Static c:PathConverters.RelativeToHome}}">
147147
<TextBlock.IsVisible>
148148
<MultiBinding Converter="{x:Static BoolConverters.And}">
149149
<Binding Path="IsRepository"/>
@@ -159,6 +159,7 @@
159159
</StackPanel>
160160

161161
<ContentControl Grid.Column="3"
162+
Margin="6,0,0,0"
162163
Content="{Binding Status, Mode=OneWay}"
163164
IsVisible="{Binding Status, Converter={x:Static ObjectConverters.NotEqual}}">
164165
<ContentControl.DataTemplates>

0 commit comments

Comments
 (0)