]> git.mxchange.org Git - friendica-addons.git/commitdiff
#8374: Not triggering post height limit when showing individual post under /display
authorChristian Wiwie <jonsnow@posteo.de>
Tue, 17 Mar 2020 21:27:48 +0000 (22:27 +0100)
committerChristian Wiwie <jonsnow@posteo.de>
Tue, 17 Mar 2020 21:27:48 +0000 (22:27 +0100)
showmore_dyn/showmore_dyn.css
showmore_dyn/showmore_dyn.js

index f8c052a84428b1754a7503e34d82684b20dd8f39..3e41fd3d4968b8240f4c1cf2cf28650ad8070bed 100644 (file)
@@ -1,11 +1,24 @@
 .wall-item-body-toggle {
+       width: 100%;
        text-align: center;
        background-image: linear-gradient(rgba(0, 0, 0, 0), #f6f6f6);
        cursor: pointer;
        height: 50px;
+       position: absolute;
+       top: auto;
+       bottom: 0;
+       z-index: 11;
+       left: 0;
        display: none;
 }
+
 .wall-item-body-toggle-text {
+       width: 100%;
+       position: absolute;
+       top: auto;
+       bottom: 0;
+       z-index: 12;
+       left: 0;
        text-shadow: 0 0 5px #f6f6f6;
        font-weight: bold;
        background: none !important;
        padding: 0 !important;
        cursor: pointer;
 }
+
 .wall-item-body-toggle-text:hover {
        text-decoration: underline;
 }
+
+.wall-item-body {
+       position: relative;
+       width: 100%;
+}
+
+.wall-item-body-wrapper {
+       position: relative;
+       width: 100%;
+       display: inline-block;
+}
index 956ba2c18ded14854d5b5fe1c371ec5c8d379722..4b32b2d31d7da499a474bba34869ce2de7dbe886 100644 (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();