Skip to content

Commit

Permalink
Fix qr code size
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePotatoArchivist committed May 29, 2024
1 parent d2d12d1 commit aba1c6b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ConnectionButton.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@
</button>
</div>

<QRCode data={link} isResponsive />
<div class="qr-container">
<QRCode data={link} isResponsive />
</div>
</DialogButton>

<style>
Expand Down Expand Up @@ -107,6 +109,10 @@
margin-bottom: 1em;
}
.qr-container {
display: contents;
}
button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
Expand Down
6 changes: 6 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,9 @@ svg {
height: 1.5em;
width: 1.5em;
}

.qr-container svg {
display: initial;
height: auto;
width: auto;
}

0 comments on commit aba1c6b

Please sign in to comment.