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