minor fix

This commit is contained in:
DismissedLight
2024-02-09 15:40:48 +08:00
parent bc3df782e4
commit ae1b452697
3 changed files with 3 additions and 3 deletions

View File

@@ -219,7 +219,7 @@ internal sealed class LaunchOptions : DbStoreOptions
get => selectedAspectRatio;
set
{
if (SetProperty(ref selectedAspectRatio, value) && value is AspectRatio aspectRatio)
if (SetProperty(ref selectedAspectRatio, value) && value is { } aspectRatio)
{
(ScreenWidth, ScreenHeight) = ((int)aspectRatio.Width, (int)aspectRatio.Height);
}

View File

@@ -221,7 +221,7 @@
<shct:DescriptionTextBlock
Margin="0,8,0,16"
Description="{Binding Description}"
Style="{StaticResource CaptionTextBlockStyle}"/>
TextStyle="{StaticResource CaptionTextBlockStyle}"/>
</StackPanel>
</Grid>
</DataTemplate>

View File

@@ -291,7 +291,7 @@
ProfilePicture="{Binding UserInfo.AvatarUrl, Mode=OneWay}"/>
<TextBlock
Grid.Column="1"
Margin="10,0,0,0"
Margin="12,0,0,0"
VerticalAlignment="Center"
Text="{Binding UserInfo.Nickname}"/>
<TextBlock