From 52d3387c6a12333e7d4bdbb80da6f7a922833a9e Mon Sep 17 00:00:00 2001 From: Jeremy Schomery Date: Mon, 13 Mar 2017 17:11:01 +0330 Subject: [PATCH] based on https://github.com/schomery/stylish-chrome/issues/43#issuecomment-286102989 --- _locales/ar/messages.json | 2 +- _locales/cs/messages.json | 2 +- _locales/de/messages.json | 2 +- _locales/el/messages.json | 2 +- _locales/en/messages.json | 2 +- _locales/es/messages.json | 2 +- _locales/fi/messages.json | 2 +- _locales/fr/messages.json | 2 +- _locales/it/messages.json | 2 +- _locales/ja/messages.json | 2 +- _locales/nl/messages.json | 2 +- _locales/pt_BR/messages.json | 2 +- _locales/ru/messages.json | 2 +- _locales/sr/messages.json | 2 +- _locales/sv/messages.json | 2 +- _locales/sv_SE/messages.json | 2 +- _locales/te/messages.json | 2 +- _locales/tr/messages.json | 2 +- _locales/zh/messages.json | 2 +- _locales/zh_CN/messages.json | 2 +- _locales/zh_TW/messages.json | 2 +- popup.css | 6 ++++++ popup.html | 1 + popup.js | 2 ++ 24 files changed, 30 insertions(+), 21 deletions(-) diff --git a/_locales/ar/messages.json b/_locales/ar/messages.json index 6f09732a..1b705ea3 100644 --- a/_locales/ar/messages.json +++ b/_locales/ar/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/cs/messages.json b/_locales/cs/messages.json index e48a8e46..9320ec0e 100644 --- a/_locales/cs/messages.json +++ b/_locales/cs/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/de/messages.json b/_locales/de/messages.json index 1f0952a6..c9e4594c 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/el/messages.json b/_locales/el/messages.json index 1ba27c22..300db67a 100644 --- a/_locales/el/messages.json +++ b/_locales/el/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 0e20ea4e..6e8a68f4 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -137,7 +137,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/es/messages.json b/_locales/es/messages.json index ceddc43e..3dc7c6f8 100644 --- a/_locales/es/messages.json +++ b/_locales/es/messages.json @@ -213,7 +213,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/fi/messages.json b/_locales/fi/messages.json index 9598a2d7..e814ab82 100644 --- a/_locales/fi/messages.json +++ b/_locales/fi/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index 1a4e8080..bce19ba1 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/it/messages.json b/_locales/it/messages.json index cba5cb0a..826d7865 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/ja/messages.json b/_locales/ja/messages.json index 39ca5c87..80c52794 100644 --- a/_locales/ja/messages.json +++ b/_locales/ja/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/nl/messages.json b/_locales/nl/messages.json index d4fe0d85..93555b8e 100644 --- a/_locales/nl/messages.json +++ b/_locales/nl/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/pt_BR/messages.json b/_locales/pt_BR/messages.json index 01776a49..cad22c50 100644 --- a/_locales/pt_BR/messages.json +++ b/_locales/pt_BR/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json index cde4ac07..fa8f6750 100644 --- a/_locales/ru/messages.json +++ b/_locales/ru/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/sr/messages.json b/_locales/sr/messages.json index 8b13f395..9b99eab0 100644 --- a/_locales/sr/messages.json +++ b/_locales/sr/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/sv/messages.json b/_locales/sv/messages.json index 230af782..1fb9b2f2 100644 --- a/_locales/sv/messages.json +++ b/_locales/sv/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/sv_SE/messages.json b/_locales/sv_SE/messages.json index 6b78292a..e2df317c 100644 --- a/_locales/sv_SE/messages.json +++ b/_locales/sv_SE/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/te/messages.json b/_locales/te/messages.json index c41b2eac..58d08b45 100644 --- a/_locales/te/messages.json +++ b/_locales/te/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/tr/messages.json b/_locales/tr/messages.json index a1377bec..4141dc66 100644 --- a/_locales/tr/messages.json +++ b/_locales/tr/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/zh/messages.json b/_locales/zh/messages.json index a1c4d1fb..f9fbd6ca 100644 --- a/_locales/zh/messages.json +++ b/_locales/zh/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json index 22227c36..dee7d960 100644 --- a/_locales/zh_CN/messages.json +++ b/_locales/zh_CN/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/_locales/zh_TW/messages.json b/_locales/zh_TW/messages.json index 88c47e52..4e3f06d8 100644 --- a/_locales/zh_TW/messages.json +++ b/_locales/zh_TW/messages.json @@ -169,7 +169,7 @@ "description": "Confirmation before deleting a style" }, "confirmOK": { - "message": "OK" + "message": "Delete" }, "confirmCancel": { "message": "Cancel" diff --git a/popup.css b/popup.css index 165c48c8..0d594e72 100644 --- a/popup.css +++ b/popup.css @@ -254,6 +254,12 @@ body>div:not(#installed) { flex: 1; padding: 0 10px; } +#confirm>div>b { + padding: 10px; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} #confirm>div>div { padding: 10px; direction: rtl; diff --git a/popup.html b/popup.html index 22237289..7de52402 100644 --- a/popup.html +++ b/popup.html @@ -70,6 +70,7 @@
+ Style's Name
diff --git a/popup.js b/popup.js index 8eaa77d0..9e07152c 100644 --- a/popup.js +++ b/popup.js @@ -118,6 +118,8 @@ function enable(event, enabled) { function doDelete() { document.getElementById('confirm').dataset.display = true; let id = getId(event); + document.querySelector('#confirm b').textContent = + document.querySelector(`[style-id="${id}"] label`).textContent; document.getElementById('confirm').dataset.id = id; }