add 2 line clamp to genre image placeholder

This commit is contained in:
jeffvli
2026-01-31 01:42:51 -08:00
parent 72ab1dc8a0
commit 63c21cf7c2
2 changed files with 12 additions and 8 deletions
@@ -115,14 +115,25 @@
.genre-placeholder {
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
padding: var(--theme-spacing-sm);
text-align: center;
}
.genre-placeholder-text {
display: -webkit-box;
width: 100%;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
font-weight: 600;
line-height: 1.2;
white-space: nowrap;
-webkit-box-orient: vertical;
}
.detail-container {
@@ -1292,15 +1292,8 @@ const GenreImagePlaceholder = ({ className, name }: { className?: string; name:
<div
className={className}
style={{
alignItems: 'center',
backgroundColor: color,
color: isLight ? '#000' : '#fff',
display: 'flex',
height: '100%',
justifyContent: 'center',
padding: 'var(--theme-spacing-sm)',
textAlign: 'center',
width: '100%',
}}
>
<span className={styles.genrePlaceholderText}>{name}</span>