mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: scroll fade problem on Artist/Album screen (#1634)
This commit is contained in:
parent
bf29f7e32e
commit
63c155ceaf
3 changed files with 24 additions and 27 deletions
|
@ -52,7 +52,7 @@
|
|||
</label>
|
||||
</template>
|
||||
|
||||
<div v-show="activeTab === 'Songs'">
|
||||
<div v-show="activeTab === 'Songs'" class="songs-pane">
|
||||
<SongListSkeleton v-if="loading" />
|
||||
<SongList
|
||||
v-else
|
||||
|
@ -65,7 +65,7 @@
|
|||
|
||||
<div v-show="activeTab === 'OtherAlbums'" class="albums-pane" data-testid="albums-pane">
|
||||
<template v-if="otherAlbums">
|
||||
<ul v-if="otherAlbums.length" class="as-list">
|
||||
<ul v-if="otherAlbums.length" class="as-list" v-koel-overflow-fade>
|
||||
<li v-for="a in otherAlbums" :key="a.id">
|
||||
<AlbumCard :album="a" layout="compact" />
|
||||
</li>
|
||||
|
@ -186,16 +186,4 @@ eventBus.on('SONGS_UPDATED', () => albumStore.byId(albumId.value!) || go('albums
|
|||
#albumWrapper {
|
||||
@include artist-album-info-wrapper();
|
||||
}
|
||||
|
||||
.albums-pane {
|
||||
padding: 1.8rem;
|
||||
|
||||
> ul {
|
||||
@include artist-album-wrapper();
|
||||
}
|
||||
}
|
||||
|
||||
.info-pane {
|
||||
padding: 1.8rem;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
</div>
|
||||
|
||||
<div v-show="activeTab === 'Albums'" class="albums-pane">
|
||||
<ul v-if="albums" class="as-list">
|
||||
<ul v-if="albums" class="as-list" v-koel-overflow-fade>
|
||||
<li v-for="album in albums" :key="album.id">
|
||||
<AlbumCard :album="album" layout="compact" />
|
||||
</li>
|
||||
|
@ -175,16 +175,4 @@ eventBus.on('SONGS_UPDATED', () => artistStore.byId(artist.value!.id) || go('art
|
|||
#artistWrapper {
|
||||
@include artist-album-info-wrapper();
|
||||
}
|
||||
|
||||
.albums-pane {
|
||||
padding: 1.8rem;
|
||||
|
||||
> ul {
|
||||
@include artist-album-wrapper();
|
||||
}
|
||||
}
|
||||
|
||||
.info-pane {
|
||||
padding: 1.8rem;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -54,7 +54,28 @@
|
|||
}
|
||||
|
||||
:deep(main) {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: auto;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
:deep(.songs-pane), :deep(.albums-pane) {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
:deep(.albums-pane) {
|
||||
> ul {
|
||||
@include artist-album-wrapper();
|
||||
|
||||
padding: 1.8rem;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.info-pane) {
|
||||
padding: 1.8rem;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in a new issue