mirror of
https://github.com/status-im/nft-faucet.git
synced 2025-02-23 12:08:32 +00:00
Extract right corner style out of Checkmark
This commit is contained in:
parent
6a0127a7d8
commit
e3298ecd10
@ -10,7 +10,7 @@
|
||||
<div class="d-flex flex-row align-items-center">
|
||||
@if (SelectedItems != null && SelectedItems.Contains(cardListItem.Id))
|
||||
{
|
||||
<Checkmark AnchorToTopRightCorner="true"/>
|
||||
<Checkmark Style="position: absolute; top: 1em; right: 1em;"/>
|
||||
}
|
||||
@if (!string.IsNullOrEmpty(cardListItem.ImageLocation))
|
||||
{
|
||||
|
@ -1,4 +1,4 @@
|
||||
<span class="checkmark" style=@(AnchorToTopRightCorner ? "position: absolute; top: 1em; right: 1em;" : string.Empty)>
|
||||
<span class="checkmark" style=@Style>
|
||||
<div class="checkmark_circle"></div>
|
||||
<div class="checkmark_stem"></div>
|
||||
<div class="checkmark_kick"></div>
|
||||
|
@ -4,5 +4,5 @@ namespace NftFaucetRadzen.Components.Checkmark;
|
||||
|
||||
public partial class Checkmark
|
||||
{
|
||||
[Parameter] public bool AnchorToTopRightCorner { get; set; }
|
||||
[Parameter] public string Style { get; set; }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user