mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
#8374: Not triggering post height limit when showing individual post under /display
This commit is contained in:
parent
f9e74a3c34
commit
15d3c2f78e
2 changed files with 31 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue