Skip to content

Commit

Permalink
Fixing small display of qr code when sharing a long url on a high-den…
Browse files Browse the repository at this point in the history
…sity display
  • Loading branch information
tstibbs committed Dec 19, 2024
1 parent cf8c0de commit 30c0cbc
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
16 changes: 15 additions & 1 deletion ui-additions/src/additions.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
flex-direction: column;
flex-wrap: wrap;
padding: 10px;
max-width: 100%;
overflow: auto;
}

#sync-share-canvas {
width: 90%;
max-width: 90vh;
max-height: 90vh;
}

.sync-base-panel label {
Expand All @@ -42,7 +50,13 @@
#sync-share-link {
font-family: sans-serif;
text-align: center;
padding: 15px;
padding-top: 15px;
padding-bottom: 15px;
max-width: 100%;
}

#sync-share-link > a {
word-wrap: break-word;
}

div#toolbarViewerMiddle,
Expand Down
1 change: 1 addition & 0 deletions ui-additions/src/sharer.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export class Sharer {
async showShareInfo(canvas) {
const shareUrl = this._urlUtils.generateClientUrl()
await qrcode.toCanvas(canvas, shareUrl)
canvas.removeAttribute('style') //gets set by the qrcode lib but we want to override using a stylesheet
return shareUrl
}
}

0 comments on commit 30c0cbc

Please sign in to comment.