Skip to content

Commit 2bc08fd

Browse files
committed
fix(list): adjust styling and make poster width a variable
1 parent 057a93d commit 2bc08fd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/components/common/list/ListItem.vue

+6-5
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ watch(
169169
/>
170170
<NImage
171171
alt="poster-image-fallback"
172-
class="poster fallback"
172+
class="poster placeholder"
173173
lazy
174174
preview-disabled
175175
:src="PosterPlaceholder"
@@ -268,16 +268,17 @@ watch(
268268
}
269269
270270
.poster {
271+
flex: 0 1 var(--poster-width, 5.3125rem);
271272
justify-content: center;
272-
min-width: 5.75rem;
273-
height: 8rem;
273+
width: var(--poster-width, 5.3125rem);
274+
height: var(--poster-height, 8rem);
274275
275-
&.fallback {
276+
&.placeholder {
276277
position: absolute;
277278
background-color: #111;
278279
}
279280
280-
&:not(.fallback) {
281+
&:not(.placeholder) {
281282
z-index: layers.$in-front;
282283
}
283284
}

0 commit comments

Comments
 (0)