We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63be1f3 commit f300c96Copy full SHA for f300c96
var/www/templates/hunter/tracker_show.html
@@ -447,12 +447,13 @@ <h5>Filter Objects:</h5>
447
const lineHeight = parseFloat(window.getComputedStyle(textElement).lineHeight);
448
var maxLines = 30;
449
const maxHeight = lineHeight * maxLines;
450
-
451
- // Apply initial truncation
452
- textElement.style.maxHeight = maxHeight + 'px';
+
453
if (textElement.getBoundingClientRect().height < maxHeight) {
+ textElement.style.maxHeight = '100%'
454
btn_read_more.hide();
455
} else {
+ // Apply initial truncation
456
+ textElement.style.maxHeight = maxHeight + 'px';
457
btn_read_more.on("click", function() {
458
if (btn_read_more.text() === "Show more") {
459
textElement.style.maxHeight = 'none';
0 commit comments