Skip to content

Commit fee8b27

Browse files
committed
ux: enable text wrap for sub-title in About window
Signed-off-by: leo <[email protected]>
1 parent d9e8ca7 commit fee8b27

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/Views/About.axaml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@
3434
IsVisible="{OnPlatform True, macOS=False}"/>
3535
</Grid>
3636

37-
<Grid Grid.Row="1" Height="200" ColumnDefinitions="Auto,Auto">
37+
<Grid Grid.Row="1" Height="200" ColumnDefinitions="Auto,*">
3838
<Image Grid.Column="0"
3939
Width="200" Height="200"
4040
Margin="8,0"
4141
Source="/App.ico"
4242
HorizontalAlignment="Center"
4343
VerticalAlignment="Center"/>
4444

45-
<StackPanel Grid.Column="1" Orientation="Vertical" VerticalAlignment="Center">
46-
<StackPanel Height="40" Orientation="Horizontal">
45+
<Grid Grid.Column="1" Margin="0,0,8,0" RowDefinitions="Auto,Auto,Auto,Auto" VerticalAlignment="Center">
46+
<StackPanel Grid.Row="0" Height="40" Orientation="Horizontal">
4747
<TextBlock Classes="bold" Text="SourceGit" FontSize="32" />
4848
<Border Margin="12,0,0,0" Height="20"
4949
CornerRadius="10"
@@ -55,9 +55,11 @@
5555
</Border>
5656
</StackPanel>
5757

58-
<TextBlock Margin="2,4,0,0" Text="{DynamicResource Text.About.SubTitle}" FontSize="16"/>
58+
<Border Grid.Row="1" Margin="2,4,0,0">
59+
<TextBlock Text="{DynamicResource Text.About.SubTitle}" FontSize="16" TextWrapping="Wrap"/>
60+
</Border>
5961

60-
<StackPanel Orientation="Horizontal" Margin="0,8,0,0">
62+
<StackPanel Grid.Row="2" Orientation="Horizontal" Margin="0,8,0,0">
6163
<Button Width="18" Height="18" Classes="icon_button" Click="OnVisitWebsite" ToolTip.Tip="https://sourcegit-scm.github.io/">
6264
<Path Width="16" Height="16" Data="{StaticResource Icons.Remotes}"/>
6365
</Button>
@@ -67,13 +69,8 @@
6769
</Button>
6870
</StackPanel>
6971

70-
<TextBlock x:Name="TxtCopyright" Margin="0,40,0,0" Foreground="{DynamicResource Brush.FG2}"/>
71-
</StackPanel>
72+
<TextBlock Grid.Row="3" x:Name="TxtCopyright" Margin="0,40,0,0" Foreground="{DynamicResource Brush.FG2}"/>
73+
</Grid>
7274
</Grid>
7375
</Grid>
74-
75-
<Window.KeyBindings>
76-
<KeyBinding Gesture="Escape" Command="{Binding #ThisControl.Close}"/>
77-
</Window.KeyBindings>
78-
7976
</v:ChromelessWindow>

0 commit comments

Comments
 (0)