Skip to content

Commit

Permalink
Firefox: set popup width to 800px
Browse files Browse the repository at this point in the history
Set language in popup and option HTML
  • Loading branch information
Release-Candidate committed Oct 11, 2021
1 parent ec88aee commit 8c7e4f9
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Notoy Browser Extensions Changelog

## Version 1.0.2 (2021-10-11)

- set language in popup and option HTML
- Firefox: set width of popup window to 800px

## Version 1.0.1 (2021-10-08)

- correct formatting of the date in Org-Mode (with angle brackets, like `<2021-10-08>`)
Expand Down
2 changes: 1 addition & 1 deletion Chrome/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"version": "1.0.1",
"version": "1.0.2",
"default_locale": "en",
"manifest_version": 3,
"author": "Roland Csaszar",
Expand Down
3 changes: 3 additions & 0 deletions Chrome/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ document.querySelectorAll("[data-locale]").forEach((elem) => {
elem.innerText = chrome.i18n.getMessage(elem.dataset.locale)
})

const langShort = chrome.i18n.getMessage("languageName")
document.documentElement.lang = langShort

chrome.storage.sync.get("optionFormat", ({ optionFormat }) => {
previewFormat = optionFormat
let markdownCheck = document.getElementById("markdown")
Expand Down
3 changes: 3 additions & 0 deletions Chrome/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ document.querySelectorAll("[data-locale]").forEach((elem) => {
elem.innerText = chrome.i18n.getMessage(elem.dataset.locale)
})

const langShort = chrome.i18n.getMessage("languageName")
document.documentElement.lang = langShort

// Title input field in the extension's popup.
let titleText = document.getElementById("titleText")
titleText.addEventListener("input", async () => {
Expand Down
2 changes: 1 addition & 1 deletion Edge/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "__MSG_extensionName__",
"version": "1.0.1",
"version": "1.0.2",
"description": "__MSG_extensionDescription__",
"author": "Roland Csaszar",
"default_locale": "en",
Expand Down
3 changes: 3 additions & 0 deletions Edge/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ document.querySelectorAll("[data-locale]").forEach((elem) => {
elem.innerText = chrome.i18n.getMessage(elem.dataset.locale)
})

const langShort = chrome.i18n.getMessage("languageName")
document.documentElement.lang = langShort

chrome.storage.sync.get("optionFormat", ({ optionFormat }) => {
previewFormat = optionFormat
let markdownCheck = document.getElementById("markdown")
Expand Down
3 changes: 3 additions & 0 deletions Edge/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ document.querySelectorAll("[data-locale]").forEach((elem) => {
elem.innerText = chrome.i18n.getMessage(elem.dataset.locale)
})

const langShort = chrome.i18n.getMessage("languageName")
document.documentElement.lang = langShort

// Title input field in the extension's popup.
let titleText = document.getElementById("titleText")
titleText.addEventListener("input", async () => {
Expand Down
2 changes: 1 addition & 1 deletion Firefox/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "__MSG_extensionName__",
"version": "1.0.1",
"version": "1.0.2",
"description": "__MSG_extensionDescription__",
"author": "Roland Csaszar",
"default_locale": "en",
Expand Down
3 changes: 3 additions & 0 deletions Firefox/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ document.querySelectorAll("[data-locale]").forEach((elem) => {
elem.innerText = browser.i18n.getMessage(elem.dataset.locale)
})

const langShort = browser.i18n.getMessage("languageName")
document.documentElement.lang = langShort

browser.storage.sync.get("optionFormat", ({ optionFormat }) => {
previewFormat = optionFormat
let markdownCheck = document.getElementById("markdown")
Expand Down
13 changes: 4 additions & 9 deletions Firefox/popup.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
html {
width: 485px; /* ??? */
height: 600px;
padding: 0px;
margin: 0px;
margin-right: 10px;
margin-left: 10px;
padding: 0px;
box-sizing: border-box;
}
Expand All @@ -16,12 +13,10 @@ html {

body {
margin: 0px;
padding-top: 0px;
padding-bottom: 0px;
padding: 0px;
font-size: medium;
width: 100%;
height: 100%;
width: 800px;
height: 600px;
padding: 1em;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
Expand Down
3 changes: 3 additions & 0 deletions Firefox/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ document.querySelectorAll("[data-locale]").forEach((elem) => {
elem.innerText = browser.i18n.getMessage(elem.dataset.locale)
})

const langShort = browser.i18n.getMessage("languageName")
document.documentElement.lang = langShort

// Title input field in the extension's popup.
let titleText = document.getElementById("titleText")
titleText.addEventListener("input", async () => {
Expand Down
4 changes: 4 additions & 0 deletions _locales/de/messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"languageName": {
"message": "de",
"description": "Kürzel der Sprache"
},
"extensionName": {
"message": "Notoy",
"description": "Name der Extension."
Expand Down
4 changes: 4 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"languageName": {
"message": "en",
"description": "Short name of the language"
},
"extensionName": {
"message": "Notoy",
"description": "Name of the extension."
Expand Down
4 changes: 4 additions & 0 deletions _locales/eo/messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"languageName": {
"message": "eo",
"description": "Kürzel der Sprache"
},
"extensionName": {
"message": "Notoy",
"description": "Name der Extension."
Expand Down
4 changes: 4 additions & 0 deletions _locales/sk/messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"languageName": {
"message": "sk",
"description": "Kürzel der Sprache"
},
"extensionName": {
"message": "Notoy",
"description": "Name der Extension."
Expand Down

0 comments on commit 8c7e4f9

Please sign in to comment.