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