ux: make Welcome page responsive (#821)

This commit is contained in:
leo 2024-12-17 09:36:06 +08:00
parent f418b72c64
commit 707a227aca
No known key found for this signature in database

View file

@ -9,8 +9,8 @@
x:Class="SourceGit.Views.Welcome"
x:DataType="vm:Welcome">
<Grid RowDefinitions="*,36">
<Grid Grid.Row="0" Margin="0,8" ColumnDefinitions="*,600,*">
<Grid Grid.Column="1" RowDefinitions="Auto,*">
<!-- Managed Repositories -->
<Grid Grid.Column="1" MinWidth="600" Margin="8" RowDefinitions="Auto,*" HorizontalAlignment="Center">
<!-- Search Box -->
<TextBox Grid.Row="0"
x:Name="SearchBox"
@ -140,19 +140,18 @@
IsVisible="{Binding IsInvalid}"/>
</StackPanel>
<TextBlock Grid.Column="3"
Classes="primary"
Margin="8,0"
HorizontalAlignment="Right" VerticalAlignment="Center"
<Border Grid.Column="3" Margin="8,0" VerticalAlignment="Center" ClipToBounds="True">
<TextBlock Classes="primary"
HorizontalAlignment="Right"
Foreground="{DynamicResource Brush.FG2}"
Text="{Binding Id, Converter={x:Static c:PathConverters.RelativeToHome}}"
IsVisible="{Binding IsRepository}"/>
</Border>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</v:RepositoryListBox>
</Grid>
</Grid>
<!-- Tips -->
<TextBlock Grid.Row="1"