Skip to content
Merged

. #2

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions css/feels-night.css
Original file line number Diff line number Diff line change
Expand Up @@ -3234,3 +3234,6 @@ tbody tr td .filterprovider {
#followers .content br {
display: none; }

.post-body, .messagepublickey{
word-break: break-word;
}
3 changes: 3 additions & 0 deletions css/feels.css
Original file line number Diff line number Diff line change
Expand Up @@ -3234,3 +3234,6 @@ tbody tr td .filterprovider {
#followers .content br {
display: none; }

.post-body, .messagepublickey{
word-break: break-word;
}
Empty file added css/niftycompact.css
Empty file.
2 changes: 1 addition & 1 deletion js/htmlquarantine.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ function getVoteButtons(txid, address, likedtxid, likeordislike, score) {
downvoteHTML = `<a id="downvoteaction` + san(txid) + `" href="javascript:;"><span id="downvote` + san(txid) + `" class="votearrowactivateddown rotate180" title="` + getSafeTranslation('down') + `"><span class="votetext">` + getSafeTranslation('down', 'down') + `</span></span></a>`;
scoreHTML = `<span class="betweenvotesscoredown" id="score` + san(txid) + `">` + Number(score) + `</span>`;
} else {
downvoteHTML = `<a id="downvoteaction` + san(txid) + `" href="javascript:;" onclick="dislikePost('` + san(txid) + `')"><span id="downvote` + san(txid) + `" class="votearrow rotate180" title="` + getSafeTranslation('up') + `"><span class="votetext">` + getSafeTranslation('down', 'down') + `</span></span></a>`;
downvoteHTML = `<a id="downvoteaction` + san(txid) + `" href="javascript:;" onclick="dislikePost('` + san(txid) + `')"><span id="downvote` + san(txid) + `" class="votearrow rotate180" title="` + getSafeTranslation('down') + `"><span class="votetext">` + getSafeTranslation('down', 'down') + `</span></span></a>`;
}

return upvoteHTML + " " + scoreHTML + " " + downvoteHTML;
Expand Down
2 changes: 1 addition & 1 deletion js/login.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 7 additions & 4 deletions js/showposts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down
1 change: 1 addition & 0 deletions js/templates.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,7 @@ <h2 data-vavilon="VV0166">Settings</h2>
<option value="base nightmode none">Member Night Mode</option>
<option value="base hackernews">Hacker News</option>
<option value="base hackernews hnnightmode">Hacker News Night Mode</option>
<option value="niftycompact">Nifty (Under development)</option>
<option data-vavilon="VV0168" value="none">None</option>
</select>
</div>
Expand Down
2 changes: 1 addition & 1 deletion sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down