Skip to content

Commit

Permalink
fix padding when no author
Browse files Browse the repository at this point in the history
  • Loading branch information
anemne committed Oct 30, 2024
1 parent c14ad0b commit ebcc19b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/components/customerCases/customerCase/CustomerCase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ function CustomerCaseSection({
return (
section.quote && (
<div className={styles.quoteBlock}>
<div className={styles.quoteBlockInner}>
<div
className={`${styles.quoteBlockInner} ${section.author ? styles.withAuthor : styles.withoutAuthor}`}
>
<Text type="quoteNormal">
{"“"}
{section.quote}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,15 @@
flex-direction: column;
background-color: var(--primary-bg);
border-radius: 2rem;
padding: 4.5rem 0.5rem 3.5rem 0.5rem;
gap: 1.25rem;
width: 100%;
align-items: center;
}

.withAuthor {
padding: 4.5rem 0.5rem 3.5rem 0.5rem;
}

.withoutAuthor {
padding: 4.5rem 0.5rem;
}

0 comments on commit ebcc19b

Please sign in to comment.