Skip to content

Commit

Permalink
fix: layout of key page
Browse files Browse the repository at this point in the history
  • Loading branch information
deansallinen committed Dec 10, 2024
1 parent e397872 commit bb0bfc6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/routes/[network]/(explorer)/key/[publicKey]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { Card, Cluster, Grid, MultiCard } from '$lib/components/layout';
import { Card, Grid, Stack } from '$lib/components/layout';
import * as m from '$lib/paraglide/messages.js';
import Account from '$lib/components/elements/account.svelte';
import Key from 'lucide-svelte/icons/key-round';
Expand All @@ -11,20 +11,20 @@
const legacyPubKey = data.publicKey.toLegacyString();
</script>

<MultiCard>
<Stack>
<Card>
<Cluster class="items-center">
<picture class="grid size-12 place-items-center rounded-full bg-mineShaft-900">
<div class="flex gap-6">
<picture class="grid size-12 shrink-0 place-items-center rounded-full bg-mineShaft-900">
<Key />
</picture>
<div class="space-y-px *:break-all">
<div class="space-y-0.5 text-balance *:break-all">
<p class="font-semibold text-white">
{pubKey}
<CopyButton data={pubKey} />
</p>
<p class="text-muted">{m.legacy_key()}{': '}{legacyPubKey}</p>
</div>
</Cluster>
</div>
</Card>
<Card title={m.accounts_using_public_key()}>
{#if data.accounts && data.accounts.length > 0}
Expand All @@ -33,7 +33,7 @@
<li class="flex">
<Account
name={account}
class="h-12 content-center rounded-lg px-4 hover:bg-mineShaft-900 hover:text-mineShaft-50 focus-visible:bg-mineShaft-900 focus-visible:text-mineShaft-50"
class="h-12 content-center rounded-lg px-4 hover:bg-mineShaft-900/50 focus-visible:bg-mineShaft-900 focus-visible:text-mineShaft-50"
/>
</li>
{/each}
Expand All @@ -42,4 +42,4 @@
<p class="text-muted text-center">{m.no_accounts_found()}</p>
{/if}
</Card>
</MultiCard>
</Stack>

0 comments on commit bb0bfc6

Please sign in to comment.