Skip to content

Commit

Permalink
<LensProfile>: show ownedBy address; update layout
Browse files Browse the repository at this point in the history
  • Loading branch information
darrylyeo committed Apr 15, 2023
1 parent a6fb8de commit b08b64b
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions src/components/LensProfile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{/if}

<header class="bar wrap">
<h3 class="row">
<div class="row">
{#if profile.picture?.uri || profile.picture?.original?.url}
{#if profile.picture.contractAddress}
<Address
Expand All @@ -58,12 +58,20 @@
{/if}
{/if}

<LensName {instance} lensName={profile.handle} />
<span class="row-inline">
<h3>
<LensName {instance} lensName={profile.handle} />
</h3>

<small class="muted">
<Address {network} address={profile.ownedBy} />
</small>
</span>

{#if profile.isDefault}
<span class="default" title="Default Profile">✔</span>
{/if}
</h3>
</div>

<span class="card-annotation">
{#if profile.isDefault}Default {/if}Lens Profile
Expand Down Expand Up @@ -175,4 +183,12 @@
gap: var(--padding-inner);
grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
}
.muted {
opacity: 0.85;
}
small {
font-size: 0.75em;
}
</style>

0 comments on commit b08b64b

Please sign in to comment.