From a515d9f81d2a51c08c59c7108e6b0d83760ccaa2 Mon Sep 17 00:00:00 2001 From: Fabiano Alencar Date: Tue, 27 Nov 2018 14:14:18 -0200 Subject: [PATCH] Fix description text on collection --- src/assets/js/tainacan-interface-truncate.js | 8 +++++--- src/assets/scss/_home-collection.scss | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/assets/js/tainacan-interface-truncate.js b/src/assets/js/tainacan-interface-truncate.js index 3139be1..4a50dde 100644 --- a/src/assets/js/tainacan-interface-truncate.js +++ b/src/assets/js/tainacan-interface-truncate.js @@ -1,8 +1,10 @@ (function($) { $.fn.tainacan_interface_truncate = function (settings) { - if(window.innerWidth <= 360) { - count = 98; - }else { + if(window.innerWidth <= 576) { + count = 150; + }else if(window.innerWidth <= 360) { + count = 87; + } else { count = 350; } var config = { diff --git a/src/assets/scss/_home-collection.scss b/src/assets/scss/_home-collection.scss index 85bbfe6..0685e45 100644 --- a/src/assets/scss/_home-collection.scss +++ b/src/assets/scss/_home-collection.scss @@ -98,7 +98,7 @@ margin-top: 0.5rem; } &.tainacan-interface-truncate { - height: 65px; + min-height: 65px; margin-bottom: 2rem; .tainacan-interface-more, .tainacan-interface-less { color: rgba(255, 255, 255, 0.60);