Merge pull request #273 from pateljannat/testimonial-card-fix

This commit is contained in:
Jannat Patel
2021-11-30 11:15:59 +05:30
committed by GitHub
2 changed files with 8 additions and 16 deletions

View File

@@ -19,7 +19,7 @@
</div> </div>
</div> </div>
<div class="testimonial-review"> <div class="testimonial-review">
"{{ review.review }}" {{ review.review }}
</div> </div>
</div> </div>
{% if loop.index % 3 == 0 or loop.index == testimonials_table | length %} </div> </div> {% endif %} {% if loop.index % 3 == 0 or loop.index == testimonials_table | length %} </div> </div> {% endif %}
@@ -45,17 +45,3 @@
</a> </a>
</div> </div>
</div> </div>
<script>
frappe.ready(() => {
let max_height = 0;
$(".carousel-item").each((i, item) => {
if (max_height < $(item).height()) {
max_height = $(item).height();
}
});
$(".carousel-inner").css("height", max_height);
})
</script>

View File

@@ -1397,8 +1397,10 @@ pre {
.testimonial-card { .testimonial-card {
flex-direction: column; flex-direction: column;
padding: 1rem 1rem 2rem; padding: 1rem;
height: 100%; height: 100%;
margin-right: 0.25rem;
margin-bottom: 0.5rem;
} }
.testimonial-author { .testimonial-author {
@@ -1410,6 +1412,10 @@ pre {
.testimonial-review { .testimonial-review {
color: var(--text-color-dark); color: var(--text-color-dark);
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
} }
.testimonial-profession { .testimonial-profession {