Add video numbering to playlists (#2811)

This commit is contained in:
absidue 2022-11-04 08:17:14 +01:00 committed by GitHub
parent 9b38d1dc0d
commit 6b0724f7e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 8 deletions

View File

@ -23,7 +23,18 @@
width: 60%;
}
@media only screen and (max-width: 800px) {
.playlistItem {
display: grid;
grid-template-columns: max-content auto;
column-gap: 8px;
align-items: center;
}
.videoIndex {
color: var(--tertiary-text-color);
}
@media only screen and (max-width: 850px) {
.routerView {
flex-direction: column;
}

View File

@ -15,15 +15,24 @@
v-if="!isLoading"
class="playlistItems"
>
<ft-list-video
<div
v-for="(item, index) in playlistItems"
:key="index"
:data="item"
:playlist-id="playlistId"
:playlist-index="index"
appearance="result"
force-list-type="list"
/>
class="playlistItem"
>
<p
class="videoIndex"
>
{{ index + 1 }}
</p>
<ft-list-video
:data="item"
:playlist-id="playlistId"
:playlist-index="index"
appearance="result"
force-list-type="list"
/>
</div>
</ft-card>
</div>
</template>