Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
simov committed Nov 24, 2022
1 parent c5bad0e commit b8cc531
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
5 changes: 3 additions & 2 deletions build/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions content/mathjax.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ var MathJax = {
var mj = {
loaded: false,
render: () => {
mj.loaded = false
MathJax.typesetPromise().then(() => {
setTimeout(() => mj.loaded = true, 20)
})
Expand Down
17 changes: 6 additions & 11 deletions options/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down
5 changes: 3 additions & 2 deletions options/origins.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
) &&
Expand Down

0 comments on commit b8cc531

Please sign in to comment.