[WIP] #8374: Limit post content by rendered height instead of number of characters #968

Merged
wiwie merged 19 commits from develop into develop 2020-03-18 01:48:19 +01:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit dd09acffbd - Show all commits

View file

@ -20,6 +20,14 @@
left: 0;
text-shadow: 0 0 5px #f6f6f6;
font-weight: bold;
background: none!important;
border: none;
padding: 0!important;
cursor: pointer;
}
.wall-item-body-toggle-text:hover {
text-decoration:underline;
}
.wall-item-body {
position: relative;

View file

@ -45,7 +45,7 @@ function addHeightToggleHandler($item) {
var toggleId = "wall-item-body-toggle-" + itemId;
$item.wrap('<div id="' + wrapperId + '" class="wall-item-body-wrapper"></div>');
$("#" + wrapperId).append('<div class="wall-item-body-toggle" data-item-id="' + itemId + '" id="' + toggleId + '" ><a href="javascript:void(0)" class="wall-item-body-toggle-text">' + showmore_dyn_showmore_linktext + '</a></div>');
$("#" + wrapperId).append('<div class="wall-item-body-toggle" data-item-id="' + itemId + '" id="' + toggleId + '" ><button type="button" class="wall-item-body-toggle-text">' + showmore_dyn_showmore_linktext + '</button></div>');
$item.addClass("limitable limit-height");
var $toggle = $("#" + toggleId);