#8374: Not triggering post height limit when showing individual post under /display

This commit is contained in:
Christian Wiwie 2020-03-17 22:27:48 +01:00
parent f9e74a3c34
commit 15d3c2f78e
2 changed files with 31 additions and 1 deletions

View file

@ -1,9 +1,14 @@
var nextBodyIdx = 0;
$(document).ready(function() {
loc = window.location.pathname;
if (loc.startsWith('/display')) {
return;
}
$("head").append('<style type="text/css"></style>');
var newStyleElement = $("head").children(':last');
newStyleElement.html('.limit-height{max-height: ' + postLimitHeight + 'px; overflow: hidden; display:inline-block;}');
newStyleElement.html('.limit-height{max-height: ' + postLimitHeight + 'px; overflow: hidden; }');
handleNewWallItemBodies();