fix(card): fix long attributes in cards under 'Known For' section
makes the attributes scrollable instead
This commit is contained in:
parent
0aea2f47da
commit
736d680243
2 changed files with 7 additions and 1 deletions
|
@ -52,7 +52,7 @@ const CardTitle = ({ link, name, year, image, ratings, titleType, children, ...r
|
|||
<span> ({formatNumber(ratings.numVotes)} votes)</span>
|
||||
</p>
|
||||
)}
|
||||
{children}
|
||||
<div className={styles.children}>{children}</div>
|
||||
</div>
|
||||
</a>
|
||||
</Link>
|
||||
|
|
|
@ -35,6 +35,12 @@
|
|||
align-content: start;
|
||||
}
|
||||
|
||||
.children {
|
||||
max-height: 7em; // firefox doesn't support lh yet.
|
||||
max-height: 7lh;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.name {
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue