mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
add 2 line clamp to genre image placeholder
This commit is contained in:
@@ -115,14 +115,25 @@
|
|||||||
|
|
||||||
.genre-placeholder {
|
.genre-placeholder {
|
||||||
box-sizing: border-box;
|
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 {
|
.genre-placeholder-text {
|
||||||
|
display: -webkit-box;
|
||||||
|
width: 100%;
|
||||||
|
min-width: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 1.2;
|
line-height: 1.2;
|
||||||
white-space: nowrap;
|
-webkit-box-orient: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
.detail-container {
|
.detail-container {
|
||||||
|
|||||||
@@ -1292,15 +1292,8 @@ const GenreImagePlaceholder = ({ className, name }: { className?: string; name:
|
|||||||
<div
|
<div
|
||||||
className={className}
|
className={className}
|
||||||
style={{
|
style={{
|
||||||
alignItems: 'center',
|
|
||||||
backgroundColor: color,
|
backgroundColor: color,
|
||||||
color: isLight ? '#000' : '#fff',
|
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>
|
<span className={styles.genrePlaceholderText}>{name}</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user