Skip to content

Commit

Permalink
Add video numbering to playlists (#2811)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue authored Nov 4, 2022
1 parent 9b38d1d commit 6b0724f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 8 deletions.
13 changes: 12 additions & 1 deletion src/renderer/views/Playlist/Playlist.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
23 changes: 16 additions & 7 deletions src/renderer/views/Playlist/Playlist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 6b0724f

Please sign in to comment.