Skip to content

Commit bc2d09a

Browse files
committed
Correct file size on Android
See #2
1 parent 7681199 commit bc2d09a

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

make.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
EXTENSION_NAME="offline-qr-code@rugk.github.io"
44

5-
mkdir "build"
5+
mkdir -p "build"
66

77
# license should be in add-on
88
mv LICENSE.md src/LICENSE.md

src/options.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@ body {
44
color: #333;
55
}
66

7+
/* on (small) mobile displays */
8+
@media (max-width: 700px) {
9+
body {
10+
/* smaller size -> default on Firefox for Android is 14px */
11+
font-size: 14px;
12+
}
13+
14+
/* e.g. the icon is not even displayed there :) */
15+
.mobile-incompatible {
16+
display: none;
17+
}
18+
}
19+
720
/* https://design.firefox.com/photon/patterns/inactive.html */
821
[disabled] {
922
opacity: 0.4;

src/options.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
</div>
2121
<form>
2222
<ul>
23-
<li>
23+
<li class="mobile-incompatible">
2424
<input class="setting save-on-change" type="checkbox" id="popupIconColored" name="icon-colored">
2525
<label data-i18n="__MSG_optionPopupIconColored__" for="popupIconColored">Colored icon</label>
2626
<span data-i18n="__MSG_optionPopupIconColoredDescr__" class="helper-text">Shows a colored icon instead of the black/white icon in the toolbar.</span>

src/popup/qrcode.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ html, body {
33
width: 100%;
44
min-height: 250px;
55
}
6+
/* on (small) mobile displays */
7+
@media (max-width: 700px) {
8+
body {
9+
/* for some reason there is a margin in Firefox for Android */
10+
margin: 0px;
11+
}
12+
}
13+
14+
615
.preventScrollbar {
716
/* prevent overflow at bottom (applied to body in JS) */
817
overflow: hidden;

0 commit comments

Comments
 (0)