mirror of
https://github.com/koel/koel
synced 2024-11-28 06:50:27 +00:00
fix: style for YouTube video list
This commit is contained in:
parent
46b21b2625
commit
1e6358fd11
2 changed files with 15 additions and 5 deletions
|
@ -23,7 +23,7 @@ const play = () => youTubeService.play(video.value)
|
|||
<style lang="scss" scoped>
|
||||
a {
|
||||
display: flex;
|
||||
padding: 12px 0;
|
||||
gap: 10px;
|
||||
|
||||
&:hover, &:active, &:focus {
|
||||
color: var(--color-text-primary);
|
||||
|
@ -40,7 +40,10 @@ a {
|
|||
}
|
||||
|
||||
img {
|
||||
margin-right: 10px;
|
||||
align-self: self-start;
|
||||
}
|
||||
|
||||
.meta {
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
<template>
|
||||
<div class="youtube-extra-wrapper">
|
||||
<template v-if="videos.length">
|
||||
<YouTubeVideo v-for="video in videos" :key="video.id.videoId" :video="video"/>
|
||||
<ul>
|
||||
<li v-for="video in videos" :key="video.id.videoId">
|
||||
<YouTubeVideo :video="video"/>
|
||||
</li>
|
||||
</ul>
|
||||
<Btn v-if="!loading" class="more" data-testid="youtube-search-more-btn" @click.prevent="loadMore">Load More</Btn>
|
||||
</template>
|
||||
|
||||
|
@ -53,8 +57,11 @@ watchEffect(() => {
|
|||
.youtube-extra-wrapper {
|
||||
overflow-x: hidden;
|
||||
|
||||
a:last-of-type {
|
||||
margin-bottom: 16px;
|
||||
ul {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 16px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue