simov 2 роки тому
батько
коміт
b8cc5315c5
4 змінених файлів з 13 додано та 15 видалено
  1. 3 2
      build/package.sh
  2. 1 0
      content/mathjax.js
  3. 6 11
      options/index.css
  4. 3 2
      options/origins.js

+ 3 - 2
build/package.sh

@@ -18,7 +18,8 @@ cd "$(dirname "$0")"
 # cleanup
 rm -rf ../themes
 rm -rf ../vendor
-rm ../background/index-compilers.js
+rm -f ../markdown-viewer.zip
+rm -f ../background/index-compilers.js
 mkdir -p ../themes
 mkdir -p ../vendor
 
@@ -36,7 +37,7 @@ sh themes/build.sh
 mkdir -p tmp
 mkdir -p tmp/markdown-viewer
 cd ..
-cp -r background content icons options popup themes vendor build/tmp/markdown-viewer/
+cp -r background content icons options popup themes vendor LICENSE build/tmp/markdown-viewer/
 
 if [ "$browser" = "chrome" ]; then
   cp manifest.chrome.json build/tmp/markdown-viewer/manifest.json

+ 1 - 0
content/mathjax.js

@@ -30,6 +30,7 @@ var MathJax = {
 var mj = {
   loaded: false,
   render: () => {
+    mj.loaded = false
     MathJax.typesetPromise().then(() => {
       setTimeout(() => mj.loaded = true, 20)
     })

+ 6 - 11
options/index.css

@@ -137,26 +137,21 @@ footer .icon-hidden {
 
 
 /*custom scrollbars in WebKit*/
-::-webkit-scrollbar {
-  width: 13px;
-  height: 13px;
+::-webkit-scrollbar,
+::-webkit-scrollbar-corner {
+  height: 10px;
+  width: 10px;
 }
 ::-webkit-scrollbar-track-piece {
   background: #ececec;
-  -webkit-border-radius: 2px;
+  border-radius: 2px;
 }
 ::-webkit-scrollbar-thumb {
-  height: 50px;
   background: #afbdc3;
-  -webkit-border-radius: 8px;
-  outline: 2px solid #333;
-  outline-offset: -2px;
-  border: 2px solid #ececec;
+  border-radius: 6px;
 }
 ::-webkit-scrollbar-thumb:hover {
-  height: 50px;
   background-color: #607d8b;
-  -webkit-border-radius: 8px;
 }
 
 

+ 3 - 2
options/origins.js

@@ -221,8 +221,9 @@ var Origins = () => {
         (
           (
             // header detection - ff: disabled
-            !/Firefox/.test(navigator.userAgent) &&
-            Object.keys(state.origins).length > 1
+            !/Firefox/.test(navigator.userAgent) && (
+              Object.keys(state.origins).length > 1 ||
+              Object.keys(state.origins).length === 1 && state.file)
           )
           || null
         ) &&