Skip to content

Commit

Permalink
increase QR-Code size as requested in #43 and fix overflow issues on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
schlagmichdoch committed Feb 24, 2023
1 parent ad109d1 commit 0eb13d9
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 17 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pairdrop",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions public/scripts/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,8 @@ class PairDeviceDialog extends Dialog {
// Display the QR code for the url
const qr = new QRCode({
content: this._getShareRoomURL(),
width: 80,
height: 80,
width: 150,
height: 150,
padding: 0,
background: "transparent",
color: getComputedStyle(document.body).getPropertyValue('--text-color'),
Expand Down
2 changes: 1 addition & 1 deletion public/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cacheVersion = 'v1.1.0';
const cacheVersion = 'v1.1.1';
const cacheTitle = `pairdrop-cache-${cacheVersion}`;
const urlsToCache = [
'index.html',
Expand Down
17 changes: 13 additions & 4 deletions public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
/* Layout */

html {
height: 100%;
min-height: 100%;
height: -webkit-fill-available;
}

html,
Expand All @@ -25,6 +26,8 @@ body {
}

body {
min-height: 100%;
min-height: -webkit-fill-available;
flex-grow: 1;
align-items: center;
justify-content: center;
Expand Down Expand Up @@ -407,6 +410,7 @@ x-dialog x-background {
transition: opacity 300ms;
will-change: opacity;
padding: 35px;
overflow: overlay;
}

x-dialog x-paper {
Expand All @@ -419,6 +423,10 @@ x-dialog x-paper {
box-sizing: border-box;
transition: transform 300ms;
will-change: transform;
position: absolute;
top: max(50%, 350px);
height: 650px;
margin-top: -325px;
}

x-dialog:not([show]) {
Expand Down Expand Up @@ -491,8 +499,8 @@ x-dialog .font-subheading {
#roomKeyQrCode {
padding: inherit;
margin: auto;
width: 80px;
height: 80px;
width: 150px;
height: 150px;
}

#pairDeviceDialog hr {
Expand Down Expand Up @@ -619,6 +627,7 @@ x-dialog .row-reverse {
#base64PasteDialog button[close] {
margin-top: 20px;
}

#base64PasteDialog button[close]:before {
border-radius: 8px;
}
Expand Down Expand Up @@ -931,7 +940,7 @@ screen and (min-width: 1100px) {
position: fixed;
}

x-instructions:before {
x-instructions:not([drop-peer]):not([drop-bg]):before {
content: attr(mobile);
}
}
Expand Down
4 changes: 2 additions & 2 deletions public_included_ws_fallback/scripts/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -840,8 +840,8 @@ class PairDeviceDialog extends Dialog {
// Display the QR code for the url
const qr = new QRCode({
content: this._getShareRoomURL(),
width: 80,
height: 80,
width: 150,
height: 150,
padding: 0,
background: "transparent",
color: getComputedStyle(document.body).getPropertyValue('--text-color'),
Expand Down
2 changes: 1 addition & 1 deletion public_included_ws_fallback/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const cacheVersion = 'v1.1.0';
const cacheVersion = 'v1.1.1';
const cacheTitle = `pairdrop-included-ws-fallback-cache-${cacheVersion}`;
const urlsToCache = [
'index.html',
Expand Down
17 changes: 13 additions & 4 deletions public_included_ws_fallback/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
/* Layout */

html {
height: 100%;
min-height: 100%;
height: -webkit-fill-available;
}

html,
Expand All @@ -26,6 +27,8 @@ body {
}

body {
min-height: 100%;
min-height: -webkit-fill-available;
flex-grow: 1;
align-items: center;
justify-content: center;
Expand Down Expand Up @@ -416,6 +419,7 @@ x-dialog x-background {
transition: opacity 300ms;
will-change: opacity;
padding: 35px;
overflow: overlay;
}

x-dialog x-paper {
Expand All @@ -428,6 +432,10 @@ x-dialog x-paper {
box-sizing: border-box;
transition: transform 300ms;
will-change: transform;
position: absolute;
top: max(50%, 350px);
height: 650px;
margin-top: -325px;
}

x-dialog:not([show]) {
Expand Down Expand Up @@ -500,8 +508,8 @@ x-dialog .font-subheading {
#roomKeyQrCode {
padding: inherit;
margin: auto;
width: 80px;
height: 80px;
width: 150px;
height: 150px;
}

#pairDeviceDialog hr {
Expand Down Expand Up @@ -628,6 +636,7 @@ x-dialog .row-reverse {
#base64PasteDialog button[close] {
margin-top: 20px;
}

#base64PasteDialog button[close]:before {
border-radius: 8px;
}
Expand Down Expand Up @@ -944,7 +953,7 @@ screen and (min-width: 1100px) {
position: fixed;
}

x-instructions:before {
x-instructions:not([drop-peer]):not([drop-bg]):before {
content: attr(mobile);
}
}
Expand Down

0 comments on commit 0eb13d9

Please sign in to comment.