Playlist page improvements (#2281)
* Add hover visual on thumbnails * Fix white-space issues on playlist description * Fix playlist issues with scrolling * Fix end of file new lines * Fix dropdown not visible issue * Fix mobile styling * Clean up using flex * Fix lint issue
This commit is contained in:
parent
492c48dcf8
commit
fd46b22f91
|
@ -1 +1,4 @@
|
|||
@use "../../sass-partials/_ft-list-item"
|
||||
|
||||
.thumbnailLink:hover
|
||||
outline: 3px solid var(--side-nav-hover-color)
|
||||
|
|
|
@ -3,32 +3,44 @@
|
|||
|
||||
.playlistThumbnail img
|
||||
width: 100%
|
||||
|
||||
cursor: pointer
|
||||
|
||||
@media only screen and (max-width: 800px)
|
||||
display: none
|
||||
|
||||
.playlistStats
|
||||
font-size: 15px
|
||||
|
||||
.playlistStats p
|
||||
color: var(--secondary-text-color)
|
||||
margin: 0
|
||||
|
||||
.playlistTitle
|
||||
margin-bottom: 0.1em
|
||||
|
||||
.playlistDescription
|
||||
max-height: 20vh
|
||||
overflow-y: auto
|
||||
white-space: break-spaces
|
||||
|
||||
@media only screen and (max-width: 500px)
|
||||
max-height: 10vh
|
||||
|
||||
.playlistChannel
|
||||
height: 70px
|
||||
display: flex
|
||||
align-items: center
|
||||
gap: 8px
|
||||
height: 40px
|
||||
|
||||
/* Indicates the box can be clicked to navigate */
|
||||
cursor: pointer
|
||||
|
||||
.channelThumbnail
|
||||
width: 70px
|
||||
width: 40px
|
||||
float: left
|
||||
border-radius: 200px 200px 200px 200px
|
||||
-webkit-border-radius: 200px 200px 200px 200px
|
||||
|
||||
.channelName
|
||||
float: left
|
||||
position: relative
|
||||
width: 200px
|
||||
margin-left: 10px
|
||||
top: 5px
|
||||
margin: 0
|
||||
font-size: 15px
|
||||
|
|
|
@ -8,7 +8,9 @@
|
|||
@click="playFirstVideo"
|
||||
>
|
||||
</div>
|
||||
<h2>
|
||||
|
||||
<div class="playlistStats">
|
||||
<h2 class="playlistTitle">
|
||||
{{ title }}
|
||||
</h2>
|
||||
<p>
|
||||
|
@ -18,12 +20,15 @@
|
|||
</span>
|
||||
{{ lastUpdated }}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<p
|
||||
class="playlistDescription"
|
||||
>
|
||||
{{ description }}
|
||||
</p>
|
||||
v-text="description"
|
||||
/>
|
||||
|
||||
<hr>
|
||||
|
||||
<div
|
||||
class="playlistChannel"
|
||||
@click="goToChannel"
|
||||
|
@ -38,7 +43,9 @@
|
|||
{{ channelName }}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<ft-list-dropdown
|
||||
:title="$t('Playlist.Share Playlist.Share Playlist')"
|
||||
:label-names="shareHeaders"
|
||||
|
|
|
@ -1,18 +1,42 @@
|
|||
.routerView {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.playlistInfo {
|
||||
background-color: var(--card-bg-color);
|
||||
padding: 10px;
|
||||
float: left;
|
||||
position: fixed;
|
||||
top: 60px;
|
||||
width: 30%;
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
height: calc(100vh - 96px);
|
||||
margin-right: 1em;
|
||||
overflow-y: auto;
|
||||
padding: 10px;
|
||||
position: sticky;
|
||||
top: 78px;
|
||||
width: 30%;
|
||||
}
|
||||
|
||||
.playlistItems {
|
||||
float: right;
|
||||
width: 60%;
|
||||
padding: 10px;
|
||||
display: grid;
|
||||
grid-gap: 10px;
|
||||
margin: 0;
|
||||
padding: 10px;
|
||||
width: 60%;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 800px) {
|
||||
.routerView {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.playlistInfo {
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
top: 0;
|
||||
height: auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.playlistItems {
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,11 +4,13 @@
|
|||
v-if="isLoading"
|
||||
:fullscreen="true"
|
||||
/>
|
||||
|
||||
<playlist-info
|
||||
v-if="!isLoading"
|
||||
:data="infoData"
|
||||
class="playlistInfo"
|
||||
/>
|
||||
|
||||
<ft-card
|
||||
v-if="!isLoading"
|
||||
class="playlistItems"
|
||||
|
|
Loading…
Reference in New Issue