Skip to content

Commit

Permalink
fix: get rid of placeholder when card ages are hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Nov 18, 2024
1 parent d2858a2 commit 2c6c3cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Hearthstone Deck Tracker/Controls/CardMarker.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
DataContext="{Binding RelativeSource={RelativeSource Self}}"
d:DesignHeight="56" d:DesignWidth="32">
<Canvas LayoutTransform="{Binding ScaleTransform}">
<Canvas Width="32" Height="32">
<Canvas Width="32" Height="32" Visibility="{Binding CardAgeVisibility}">
<Canvas.Background>
<ImageBrush ImageSource="/HearthstoneDeckTracker;component/Images/card-marker.png"/>
</Canvas.Background>
<hearthstoneDeckTracker:HearthstoneTextBlock
FontSize="18" Width="32" Height="32" TextAlignment="Center"
Text="{Binding CardAge}" Visibility="{Binding CardAgeVisibility}"
Text="{Binding CardAge}"
d:Text="1"
/>
</Canvas>
Expand Down

0 comments on commit 2c6c3cf

Please sign in to comment.