From 9ce62bb17f72998c7e1d0f1d021a7ab8b109b699 Mon Sep 17 00:00:00 2001 From: FreeTrade Date: Mon, 16 Nov 2020 09:45:40 +0800 Subject: [PATCH 1/2] break word for public key --- css/feels-night.css | 3 +++ css/feels.css | 3 +++ 2 files changed, 6 insertions(+) diff --git a/css/feels-night.css b/css/feels-night.css index dfca8032..2ee16398 100644 --- a/css/feels-night.css +++ b/css/feels-night.css @@ -3234,3 +3234,6 @@ tbody tr td .filterprovider { #followers .content br { display: none; } + .post-body, .messagepublickey{ + word-break: break-word; + } \ No newline at end of file diff --git a/css/feels.css b/css/feels.css index 8b1cdb0e..38118567 100644 --- a/css/feels.css +++ b/css/feels.css @@ -3234,3 +3234,6 @@ tbody tr td .filterprovider { #followers .content br { display: none; } + .post-body, .messagepublickey{ + word-break: break-word; + } \ No newline at end of file From 89c59dfb852e9bb5c8997a6f0ce00652a1be5ed2 Mon Sep 17 00:00:00 2001 From: FreeTrade Date: Thu, 19 Nov 2020 08:41:25 +0800 Subject: [PATCH 2/2] fix dislike button, add nifty theme for dev --- css/niftycompact.css | 0 js/htmlquarantine.js | 2 +- js/login.js | 2 +- js/showposts.js | 11 +++++++---- js/templates.js.html | 1 + sw.js | 2 +- 6 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 css/niftycompact.css diff --git a/css/niftycompact.css b/css/niftycompact.css new file mode 100644 index 00000000..e69de29b diff --git a/js/htmlquarantine.js b/js/htmlquarantine.js index a204859b..5a2da94c 100644 --- a/js/htmlquarantine.js +++ b/js/htmlquarantine.js @@ -506,7 +506,7 @@ function getVoteButtons(txid, address, likedtxid, likeordislike, score) { downvoteHTML = `` + getSafeTranslation('down', 'down') + ``; scoreHTML = `` + Number(score) + ``; } else { - downvoteHTML = `` + getSafeTranslation('down', 'down') + ``; + downvoteHTML = `` + getSafeTranslation('down', 'down') + ``; } return upvoteHTML + " " + scoreHTML + " " + downvoteHTML; diff --git a/js/login.js b/js/login.js index 9e4ea28d..2618b67d 100644 --- a/js/login.js +++ b/js/login.js @@ -3,7 +3,7 @@ //Preferable to grab this from sw.js, but don't know how. //So must be entered in two places -var version = "5.0.11"; +var version = "5.0.12"; var pubkey = ""; //Public Key (Legacy) var mnemonic = ""; //Mnemonic BIP39 diff --git a/js/showposts.js b/js/showposts.js index 29de678d..8ced07bc 100644 --- a/js/showposts.js +++ b/js/showposts.js @@ -566,10 +566,13 @@ function decreaseGUILikes(txid) { uparrow.className = "votearrow"; if (theStyle.contains('compact')) { - var dislikescount = Number(document.getElementById('dislikescount' + txid).innerText); - document.getElementById('dislikescount' + txid).innerText = dislikescount + 1; - uparrow.className = "votearrowactivateddown rotate180 post-footer-upvote"; - downarrow.className = "votearrow post-footer-downvote-activated"; + var dislikeElement=document.getElementById('dislikescount' + txid); + if(dislikeElement){ + var dislikescount = Number(dislikeElement.innerText); + dislikeElement.innerText = dislikescount + 1; + } + uparrow.className = "votearrow post-footer-upvote"; + downarrow.className = "votearrowactivated rotate180 post-footer-downvote-activated"; }else{ document.getElementById('score' + txid).className = "betweenvotesscoredown"; } diff --git a/js/templates.js.html b/js/templates.js.html index 47df7b6b..110f9792 100644 --- a/js/templates.js.html +++ b/js/templates.js.html @@ -777,6 +777,7 @@

Settings

+ diff --git a/sw.js b/sw.js index 1f91c8da..f28c8f71 100644 --- a/sw.js +++ b/sw.js @@ -10,7 +10,7 @@ const PRECACHE_URLS = [ ]; //If updating version here, also update version in login.js -const version = '5.0.11'; +const version = '5.0.12'; const RUNTIME = 'runtime-' + version; const INSTALL = 'install-' + version;