#8374: Removed wrapper and unnecessary css

pull/968/head
Christian Wiwie 2020-03-17 21:50:00 +01:00
parent b5056b11ef
commit f9e74a3c34
2 changed files with 1 additions and 28 deletions

View File

@ -1,24 +1,11 @@
.wall-item-body-toggle { .wall-item-body-toggle {
width: 100%;
text-align: center; text-align: center;
background-image: linear-gradient(rgba(0, 0, 0, 0), #f6f6f6); background-image: linear-gradient(rgba(0, 0, 0, 0), #f6f6f6);
cursor: pointer; cursor: pointer;
height: 50px; height: 50px;
position: absolute;
top: auto;
bottom: 0;
z-index: 11;
left: 0;
display: none; display: none;
} }
.wall-item-body-toggle-text { .wall-item-body-toggle-text {
width: 100%;
position: absolute;
top: auto;
bottom: 0;
z-index: 12;
left: 0;
text-shadow: 0 0 5px #f6f6f6; text-shadow: 0 0 5px #f6f6f6;
font-weight: bold; font-weight: bold;
background: none !important; background: none !important;
@ -26,18 +13,6 @@
padding: 0 !important; padding: 0 !important;
cursor: pointer; cursor: pointer;
} }
.wall-item-body-toggle-text:hover { .wall-item-body-toggle-text:hover {
text-decoration: underline; text-decoration: underline;
} }
.wall-item-body {
position: relative;
width: 100%;
}
.wall-item-body-wrapper {
position: relative;
width: 100%;
display: inline-block;
}

View File

@ -53,11 +53,9 @@ function handleNewWallItemBodies() {
function addHeightToggleHandler($item) { function addHeightToggleHandler($item) {
var itemId = parseInt($item.attr("id").replace("wall-item-body-", "")); var itemId = parseInt($item.attr("id").replace("wall-item-body-", ""));
$item.data("item-id", itemId); $item.data("item-id", itemId);
var wrapperId = "wall-item-body-wrapper-" + itemId;
var toggleId = "wall-item-body-toggle-" + itemId; var toggleId = "wall-item-body-toggle-" + itemId;
$item.wrap('<div id="' + wrapperId + '" class="wall-item-body-wrapper"></div>'); $item.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>');
$("#" + 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"); $item.addClass("limitable limit-height");
var $toggle = $("#" + toggleId); var $toggle = $("#" + toggleId);