mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 19:24:59 +00:00
style: Improve testimonial card spacing and readability
This commit is contained in:
parent
f3f0416d31
commit
083b49f3c4
1 changed files with 16 additions and 1 deletions
|
@ -244,8 +244,20 @@ aider --model o3-mini --api-key openai=<key></code></pre>
|
||||||
transition: opacity 0.4s ease, transform 0.4s ease, height 0.4s ease;
|
transition: opacity 0.4s ease, transform 0.4s ease, height 0.4s ease;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: flex-start;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
padding: 20px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonial-text {
|
||||||
|
line-height: 1.5;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.testimonial-author {
|
||||||
|
margin-top: auto;
|
||||||
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@ -456,6 +468,9 @@ const testimonials = [
|
||||||
maxHeight = Math.max(maxHeight, height);
|
maxHeight = Math.max(maxHeight, height);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Add a bit of extra padding to ensure enough space
|
||||||
|
maxHeight += 20;
|
||||||
|
|
||||||
// Set the max height on all cards
|
// Set the max height on all cards
|
||||||
cards.forEach(card => {
|
cards.forEach(card => {
|
||||||
card.style.height = `${maxHeight}px`;
|
card.style.height = `${maxHeight}px`;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue