mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-06 20:10:12 +02:00
add 2 line clamp to genre image placeholder
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user