]> git.mxchange.org Git - friendica-addons.git/commitdiff
#8374: Fixing css indent; Making addon work with Vier theme
authorChristian Wiwie <jonsnow@posteo.de>
Sat, 14 Mar 2020 22:34:09 +0000 (23:34 +0100)
committerChristian Wiwie <jonsnow@posteo.de>
Sat, 14 Mar 2020 22:34:09 +0000 (23:34 +0100)
showmore_dyn/showmore_dyn.css
showmore_dyn/showmore_dyn.js

index e351594f486013bf9650771fe339513305f171d5..0e082e10a3eb5aa9597ca12d7da44694b8819389 100644 (file)
@@ -1,42 +1,41 @@
 .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;
+       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;
-  border: none;
-  padding: 0!important;
-  cursor: pointer;
+       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;
+       border: none;
+       padding: 0!important;
+       cursor: pointer;
 }
 .wall-item-body-toggle-text:hover {
-         text-decoration:underline;
+       text-decoration:underline;
 }
 .wall-item-body {
-    position: relative;
-    width: 100%;
+       position: relative;
+       width: 100%;
 }
 .wall-item-body-wrapper {
-    position: relative;
-    width: 100%;
-    display: inline-block;
+       position: relative;
+       width: 100%;
+       display: inline-block;
 }
 
 
index e03e34aef6366438e01d6d8f261f395d8c78c2cf..576d03f3d9026049741926959a3be6c24c450bc1 100644 (file)
@@ -1,7 +1,9 @@
+var nextBodyIdx = 0;
+
 $(document).ready(function(){
        $("head").append('<style type="text/css"></style>');
        var newStyleElement = $("head").children(':last');
-       newStyleElement.html('.limit-height{max-height: ' + postLimitHeight + 'px; overflow: hidden;}');
+       newStyleElement.html('.limit-height{max-height: ' + postLimitHeight + 'px; overflow: hidden; display:inline-block;}');
 
        handleNewWallItemBodies();
 
@@ -19,6 +21,9 @@ function handleNewWallItemBodies() {
                        return;
                }
 
+               if (!$el.attr("id")) {
+                       $el.attr("id", nextBodyIdx++);
+               }
                addHeightToggleHandler($el);
                var limited = processHeightLimit($el);