Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
WamWooWam committed Dec 24, 2024
1 parent 7af98b4 commit 163c419
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions UniSky/Controls/Compose/ComposeSheet.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
xmlns:compose="using:UniSky.ViewModels.Compose"
xmlns:templates="using:UniSky.Templates"
xmlns:labels="using:UniSky.Controls.Labels"
xmlns:localControls="using:UniSky.Controls" xmlns:posts="using:UniSky.ViewModels.Posts"
xmlns:localControls="using:UniSky.Controls"
xmlns:posts="using:UniSky.ViewModels.Posts"
mc:Ignorable="d" d:DesignHeight="350" d:DesignWidth="480"
DataContext="{x:Bind ViewModel, Mode=OneWay}"
PrimaryButtonCommand="{x:Bind ViewModel.PostCommand}"
Expand Down Expand Up @@ -81,27 +82,21 @@

<Grid Margin="0,0,12,0"
Grid.RowSpan="4">
<Button Command="{x:Bind Author.OpenProfileCommand}"
CommandParameter="{Binding ElementName=ProfileEllipse}"
Style="{ThemeResource CleanButtonStyle}"
Padding="0"
Margin="-1,0,0,0"
VerticalAlignment="Top">
<Ellipse x:Name="ProfileEllipse"
<Ellipse x:Name="ProfileEllipse"
Width="42"
Height="42">
<Ellipse.Fill>
<ImageBrush>
<ImageBrush.ImageSource>
<BitmapImage UriSource="{Binding Author.AvatarUrl}"
DecodePixelWidth="42"
DecodePixelHeight="42"
DecodePixelType="Logical"/>
</ImageBrush.ImageSource>
</ImageBrush>
</Ellipse.Fill>
</Ellipse>
</Button>
Height="42"
VerticalAlignment="Top">
<Ellipse.Fill>
<ImageBrush>
<ImageBrush.ImageSource>
<BitmapImage UriSource="{Binding Author.AvatarUrl}"
DecodePixelWidth="42"
DecodePixelHeight="42"
DecodePixelType="Logical"/>
</ImageBrush.ImageSource>
</ImageBrush>
</Ellipse.Fill>
</Ellipse>
</Grid>

<StackPanel Grid.Column="1">
Expand Down Expand Up @@ -215,7 +210,6 @@
BorderBrush="{ThemeResource SystemControlSeparatorBrush}"
extensions:Hairline.BorderThickness="0,0,0,1">
<ContentControl x:Name="ReplyContent"
IsHitTestVisible="False"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
Margin="0,0,0,8"
Expand Down

0 comments on commit 163c419

Please sign in to comment.