Skip to content

Commit

Permalink
qr-generator: Remove redundant title
Browse files Browse the repository at this point in the history
  • Loading branch information
eliandoran committed Jul 10, 2024
1 parent 8bef2ff commit 01554a8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/action-card.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
import Card from "./card.svelte";
export let title;
export let title = null;
export let columns = "mobile-only";
</script>

Expand Down
5 changes: 3 additions & 2 deletions src/lib/components/card.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@
border: 1px solid var(--card-border-color);
box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
}
section:global(:last-of-type) {
margin-bottom: 0;
}
section.with-title {
section.with-title,
section:first-of-type {
margin-top: 0em;
}
Expand Down
2 changes: 1 addition & 1 deletion src/routes/qr-generator/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
</div>

<div class="actions">
<ActionCard title="Download the QR code" columns="always">
<ActionCard columns="always">
{#if svgDownloadUrl}
<ActionCardItem label="Download as SVG" href={svgDownloadUrl} icon={FileCodeOutline} download _target="blank" />
{/if}
Expand Down

0 comments on commit 01554a8

Please sign in to comment.