Commits

bobf committed 44cc761

use max-height instead of height for artist description - some descriptions will take up less space than 100px so expanding/collapsing is actually inversed for these cases when using 'height'

Comments (0)

Files changed (2)

soundbush/public/css/base.css

 }
 
 #artist-description {
-  height: 100px;
+  max-height: 100px;
   overflow: hidden;
 }
 

soundbush/public/js/main.js

 
     $("#read-more").toggle(
         function () {
-            $("#artist-description").css("height", "auto");
+            $("#artist-description").css("max-height", "none");
             $(this).text("Show less");
             return false;
         },
         function () {
-            $("#artist-description").css("height", "100px");
+            $("#artist-description").css("max-height", "100px");
             $(this).text("Show more");
             return false;
         });