Skip to content

Commit

Permalink
fix: styling
Browse files Browse the repository at this point in the history
  • Loading branch information
oplik0 committed Oct 24, 2022
1 parent 4b0dd5b commit 23b9548
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@

<Breadcrumbs />
<Nav items={routes} />
<Router {routes} />
<main>
<Router {routes} />
</main>

<style>
:global(body) {
Expand Down
14 changes: 10 additions & 4 deletions src/lib/KeyCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,14 @@
<svelte:fragment slot="content">
<div class="expanded-content">
{#if key.name}
<TextBlock variant="bodyStrong">uuid: {key.uuid}</TextBlock>
<TextBlock variant="caption" class="uuid-content">
{key.uuid}
</TextBlock>
{/if}
<TextBlock variant="bodyStrong">semver: v{key.version}</TextBlock>
<TextBlock variant="bodyStrong"
>variant: {key.secure ? "secure" : "hacker"}</TextBlock
>
<TextBlock variant="bodyStrong">
variant: {key.secure ? "secure" : "hacker"}
</TextBlock>
<div>
<Button variant="hyperlink" href="#/totp/{key.uuid}">TOTP</Button>

Expand Down Expand Up @@ -370,6 +372,10 @@
:global(.overflow-visible > .expander-content-anchor) {
overflow: visible !important;
}
:global(.uuid-content) {
max-width: min-content;
text-align: center;
}
.selected_file {
fill: var(--fds-accent-default);
}
Expand Down

0 comments on commit 23b9548

Please sign in to comment.