Skip to content

Commit

Permalink
Merge pull request #118 from Sav22999/beta
Browse files Browse the repository at this point in the history
4.1.0.3
  • Loading branch information
Sav22999 authored Oct 21, 2024
2 parents 4b7c327 + 177a1bf commit 9cb54c7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
7 changes: 3 additions & 4 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@ body {
color: inherit;
}

@media screen and (orientation: portrait) {
#popup-content {
max-width: none;
}
#popup-content.mobile {
min-width: 100%;
max-width: 100%;
}

#tabs-section {
Expand Down
9 changes: 9 additions & 0 deletions js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,15 @@ function loadUI() {
document.getElementById("notes").blur();
document.getElementById("notes").focus();
}, 200);

let details = navigator.userAgent;
let regexp = /android|iphone|kindle|ipad/i;
let isMobileDevice = regexp.test(details);
if (isMobileDevice) {
if (document.getElementById("popup-content") && !document.getElementById("popup-content").classList.contains("mobile")) {
document.getElementById("popup-content").classList.add("mobile");
}
}
}

function changeTagColour(url, colour) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "Notefox: Websites notes",
"author": "Saverio Morelli (Sav22999)",
"version": "4.1.0.2",
"version": "4.1.0.3",
"description": "Take notes on every website in a smart and simple way!",
"icons": {
"16": "./img/icon.svg",
Expand Down

0 comments on commit 9cb54c7

Please sign in to comment.