diff --git a/data/interfaces/default/css/tautulli.css b/data/interfaces/default/css/tautulli.css index 6a862228..feef2113 100644 --- a/data/interfaces/default/css/tautulli.css +++ b/data/interfaces/default/css/tautulli.css @@ -1830,15 +1830,29 @@ a:hover .summary-poster-face-track .summary-poster-face-overlay span { max-height: 15px; margin: 0 5px; } -.summary-content-summary { +.summary-content-text { overflow: hidden; color: #eee; float: left; position: relative; clear: both; - height: auto; - max-height: 160px; - padding-bottom: 0px; + padding-bottom: 0; +} +.summary-content-tagline { + font-weight: bold; +} +.summary-content-summary { + height: 60px; +} +.summary-toggle { + display: none; + margin-top: 10px; + font-size: 12px; + font-weight: bold; + text-transform: uppercase; +} +.summary-toggle a { + color: #999; } .summary-content-people-wrapper { margin-right: 20px; diff --git a/data/interfaces/default/info.html b/data/interfaces/default/info.html index eda30dee..aae08ee9 100644 --- a/data/interfaces/default/info.html +++ b/data/interfaces/default/info.html @@ -402,12 +402,15 @@ DOCUMENTATION :: END % if data['tagline']: -
-

${data['tagline']}

+
+

${data['tagline']}

% endif -
-

${data['summary'] | br, n}

+
+

${data['summary'] | br, n}

+
+
@@ -997,6 +1000,21 @@ DOCUMENTATION :: END return '
'; } }); + + $('.summary-content-summary').hasScrollBar() ? $('.summary-toggle').show() : $('.summary-toggle').hide(); + + $('.summary-toggle a').on('click', function() { + var $this = $(this); + var $content = $this.parent().prev('div.summary-content-summary'); + + if ($this.hasClass('show-more')) { + $this.html('Read less  ').toggleClass('show-more').toggleClass('show-less'); + $content.animate({'height': $content[0].scrollHeight}); + } else { + $this.html('Read more  ').toggleClass('show-more').toggleClass('show-less'); + $content.animate({'height': '60px'}); + } + }); % if _session['user_group'] == 'admin':