fix UI upsert user for smaller screen

This commit is contained in:
kwan.nguyen 2025-01-09 20:31:33 +07:00
parent 2bdc220a19
commit 1963eecbd2
1 changed files with 85 additions and 76 deletions

View File

@ -56,7 +56,8 @@
<RowDefinition Height="0.12*"/> <RowDefinition Height="0.12*"/>
<RowDefinition Height="0.12*"/> <RowDefinition Height="0.12*"/>
<RowDefinition Height="0.12*"/> <RowDefinition Height="0.12*"/>
<RowDefinition Height="0.28*"/> <RowDefinition Height="0.1*"/>
<RowDefinition Height="0.18*"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="0.05*"/> <ColumnDefinition Width="0.05*"/>
@ -260,7 +261,14 @@
<Grid <Grid
Grid.Row="2" Grid.Column="2" Grid.Row="2" Grid.Column="2"
Grid.ColumnSpan="2" Grid.RowSpan="2" Grid.ColumnSpan="2" Grid.RowSpan="5">
<Grid.RowDefinitions>
<RowDefinition Height="0.6*"/>
<RowDefinition Height="0.4*"/>
</Grid.RowDefinitions>
<Grid
Grid.Row="0"
HorizontalAlignment="Stretch"> HorizontalAlignment="Stretch">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="0.1*"/> <RowDefinition Height="0.1*"/>
@ -279,6 +287,7 @@
Style="{StaticResource TexBlockStyle}"/> Style="{StaticResource TexBlockStyle}"/>
<StackPanel Grid.Row="2" Grid.Column="1"> <StackPanel Grid.Row="2" Grid.Column="1">
<GridView Grid.Row="2" Grid.Column="1" <GridView Grid.Row="2" Grid.Column="1"
MaxHeight="100"
x:Name="Permissions" x:Name="Permissions"
ScrollViewer.HorizontalScrollMode="Disabled" ScrollViewer.HorizontalScrollMode="Disabled"
ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.HorizontalScrollBarVisibility="Disabled"
@ -309,13 +318,11 @@
</Grid> </Grid>
<Grid <Grid
Grid.Row="4" Grid.Column="2" Grid.Row="1"
Grid.ColumnSpan="2" Grid.RowSpan="2"
HorizontalAlignment="Stretch"> HorizontalAlignment="Stretch">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="0.15*"/> <RowDefinition Height="0.3*"/>
<RowDefinition Height="0.25*"/> <RowDefinition Height="0.7*"/>
<RowDefinition Height="0.6*"/>
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
<ColumnDefinition Width="0.1*"/> <ColumnDefinition Width="0.1*"/>
@ -323,13 +330,14 @@
<ColumnDefinition Width="0.1*"/> <ColumnDefinition Width="0.1*"/>
</Grid.ColumnDefinitions> </Grid.ColumnDefinitions>
<TextBlock <TextBlock
Grid.Row="1" Grid.Column="1" Grid.Row="0" Grid.Column="1"
HorizontalAlignment="Center" HorizontalAlignment="Center"
VerticalAlignment="Center"
Style="{StaticResource TexBlockStyle}" Style="{StaticResource TexBlockStyle}"
Text="Description:" Text="Description:"
FontSize="20" /> FontSize="20" />
<TextBox <TextBox
Grid.Row="2" Grid.Column="1" Grid.Row="1" Grid.Column="1"
x:Name="DescriptionBox" x:Name="DescriptionBox"
VerticalAlignment="Stretch" VerticalAlignment="Stretch"
AcceptsReturn="True" AcceptsReturn="True"
@ -341,8 +349,9 @@
Text="{Binding Description, Mode=TwoWay}" Text="{Binding Description, Mode=TwoWay}"
FontSize="20" /> FontSize="20" />
</Grid> </Grid>
</Grid>
<Grid Grid.Row="6" Grid.Column="3"> <Grid Grid.Row="7" Grid.Column="3">
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="0.1*"/> <RowDefinition Height="0.1*"/>
<RowDefinition Height="0.9*"/> <RowDefinition Height="0.9*"/>