Forráskód Böngészése

removed "px" from the logPanelWidth key

Gildas 7 éve
szülő
commit
8ed23eea1e

+ 2 - 2
_locales/en/messages.json

@@ -264,7 +264,7 @@
         "description": "Label 'Step' (for 'Step x / 4') in the log panel"
     },
     "logPanelWidth": {
-        "message": "120px",
-        "description": "Width of the log panel"
+        "message": "120",
+        "description": "Width of the log panel in pixels, it should be adjusted for the longest label beginning with 'log' (e.g. 'logPanelDeferredImages')"
     }
 }

+ 2 - 2
_locales/fr/messages.json

@@ -264,7 +264,7 @@
         "description": "Label 'Step' (for 'Step x / 4') in the log panel"
     },
     "logPanelWidth": {
-        "message": "130px",
-        "description": "Width of the log panel"
+        "message": "130",
+        "description": "Width of the log panel in pixels, it should be adjusted for the longest label beginning with 'log' (e.g. 'logPanelDeferredImages')"
     }
 }

+ 2 - 2
_locales/ja/messages.json

@@ -264,7 +264,7 @@
         "description": "Label 'Step' (for 'Step x / 4') in the log panel"
     },
     "logPanelWidth": {
-        "message": "110px",
-        "description": "Width of the log panel"
+        "message": "110",
+        "description": "Width of the log panel in pixels, it should be adjusted for the longest label beginning with 'log' (e.g. 'logPanelDeferredImages')"
     }
 }

+ 2 - 2
_locales/pl/messages.json

@@ -264,7 +264,7 @@
         "description": "Label 'Step' (for 'Step x / 4') in the log panel"
     },
     "logPanelWidth": {
-        "message": "130px",
-        "description": "Width of the log panel"
+        "message": "130",
+        "description": "Width of the log panel in pixels, it should be adjusted for the longest label beginning with 'log' (e.g. 'logPanelDeferredImages')"
     }
 }

+ 2 - 2
_locales/ru/messages.json

@@ -264,7 +264,7 @@
         "description": "Label 'Step' (for 'Step x / 4') in the log panel"
     },
     "logPanelWidth": {
-        "message": "120px",
-        "description": "Width of the log panel"
+        "message": "120",
+        "description": "Width of the log panel in pixels, it should be adjusted for the longest label beginning with 'log' (e.g. 'logPanelDeferredImages')"
     }
 }

+ 2 - 2
_locales/zh_CN/messages.json

@@ -264,8 +264,8 @@
         "description": "Label 'Step' (for 'Step x / 4') in the log panel"
     },
     "logPanelWidth": {
-        "message": "115px",
-        "description": "Width of the log panel"
+        "message": "115",
+        "description": "Width of the log panel in pixels, it should be adjusted for the longest label beginning with 'log' (e.g. 'logPanelDeferredImages')"
     },
     "__WET_LOCALE__": {
         "message": "zh-cn"

+ 1 - 1
extension/ui/content/content-ui.js

@@ -276,7 +276,7 @@ this.singlefile.ui = this.singlefile.ui || (() => {
 		logsWindowElement.style.setProperty("left", "8px", "important");
 		logsWindowElement.style.setProperty("z-index", 2147483647, "important");
 		logsWindowElement.style.setProperty("background-color", "white", "important");
-		logsWindowElement.style.setProperty("min-width", browser.i18n.getMessage("logPanelWidth"), "important");
+		logsWindowElement.style.setProperty("min-width", browser.i18n.getMessage("logPanelWidth") + "px", "important");
 		logsWindowElement.style.setProperty("min-height", "16px", "important");
 		logsWindowElement.style.setProperty("transition", "height 100ms", "important");
 		logsWindowElement.style.setProperty("will-change", "height", "important");