File tree Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Expand file tree Collapse file tree 5 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 10
10
< meta name ="theme-color " content ="#3367d6 ">
11
11
< meta name ="color-scheme " content ="dark light ">
12
12
< meta name ="apple-mobile-web-app-capable " content ="yes ">
13
+ < meta name ="apple-mobile-web-app-status-bar-style " content ="black-translucent ">
13
14
< meta name ="apple-mobile-web-app-title " content ="PairDrop ">
14
15
< meta name ="application-name " content ="PairDrop ">
15
16
<!-- Descriptions -->
@@ -841,4 +842,4 @@ <h3>PairDrop works only with JavaScript</h3>
841
842
</ x-noscript >
842
843
</ noscript >
843
844
</ body >
844
- </ html >
845
+ </ html >
Original file line number Diff line number Diff line change 26
26
}
27
27
],
28
28
"background_color" : " #efefef" ,
29
- "display" : " minimal-ui " ,
29
+ "display" : " standalone " ,
30
30
"theme_color" : " #3367d6" ,
31
31
"screenshots" : [
32
32
{
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ class PairDrop {
81
81
}
82
82
83
83
onPwaInstallable ( e ) {
84
- if ( ! window . matchMedia ( '(display-mode: minimal-ui )' ) . matches ) {
84
+ if ( ! window . matchMedia ( '(display-mode: standalone )' ) . matches ) {
85
85
// only display install btn when not installed
86
86
this . $headerInstallBtn . removeAttribute ( 'hidden' ) ;
87
87
this . $headerInstallBtn . addEventListener ( 'click' , ( ) => {
Original file line number Diff line number Diff line change @@ -357,7 +357,6 @@ class BackgroundCanvas {
357
357
this . w = document . documentElement . clientWidth ;
358
358
this . h = document . documentElement . clientHeight ;
359
359
this . offset = this . $footer . offsetHeight - 27 ;
360
- if ( this . h >= 800 ) this . offset += 10 ;
361
360
362
361
if ( oldW === this . w && oldH === this . h && oldOffset === this . offset ) return ; // nothing has changed
363
362
Original file line number Diff line number Diff line change @@ -899,7 +899,7 @@ x-peers:empty~x-instructions {
899
899
900
900
@media screen and (min-height : 800px ) {
901
901
footer {
902
- margin -bottom: 16 px ;
902
+ padding -bottom: 10 px ;
903
903
}
904
904
}
905
905
@@ -909,6 +909,13 @@ x-peers:empty~x-instructions {
909
909
}
910
910
}
911
911
912
+ /* PWA Standalone styles */
913
+ @media all and (display-mode : standalone) {
914
+ footer {
915
+ padding-bottom : 34px ;
916
+ }
917
+ }
918
+
912
919
/* Constants */
913
920
914
921
: root {
You can’t perform that action at this time.
0 commit comments