Improve playlist long description display (#1358)

* $ Add class names to some elements & use in CSS

* * Update playlist page style to ensure description box has max height to enusre visibility of share button
This commit is contained in:
PikachuEXE 2021-08-06 03:22:43 +08:00 committed by GitHub
parent 272cdbac8a
commit 0d0a2f4c26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 36 deletions

View File

@ -1,32 +0,0 @@
.playListThumbnail {
width: 100%;
}
.playlistThumbnail img {
width: 100%;
cursor: pointer;
}
.playlistChannel {
height: 70px;
/* Indicates the box can be clicked to navigate */
cursor: pointer;
}
.playlistChannel img {
width: 70px;
float: left;
border-radius: 200px 200px 200px 200px;
-webkit-border-radius: 200px 200px 200px 200px;
}
.playlistChannel h3 {
float: left;
position: relative;
width: 200px;
margin-left: 10px;
top: 5px;
font-size: 15px;
}

View File

@ -0,0 +1,34 @@
.playListThumbnail
width: 100%
.playlistThumbnail img
width: 100%
cursor: pointer
.playlistDescription
max-height: 20vh
overflow-y: auto
@media only screen and (max-width: 500px)
max-height: 10vh
.playlistChannel
height: 70px
/* Indicates the box can be clicked to navigate */
cursor: pointer
.channelThumbnail
width: 70px
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
font-size: 15px

View File

@ -18,7 +18,9 @@
</span> </span>
{{ lastUpdated }} {{ lastUpdated }}
</p> </p>
<p> <p
class="playlistDescription"
>
{{ description }} {{ description }}
</p> </p>
<hr> <hr>
@ -26,8 +28,13 @@
class="playlistChannel" class="playlistChannel"
@click="goToChannel" @click="goToChannel"
> >
<img :src="channelThumbnail"> <img
<h3> class="channelThumbnail"
:src="channelThumbnail"
>
<h3
class="channelName"
>
{{ channelName }} {{ channelName }}
</h3> </h3>
</div> </div>
@ -42,4 +49,4 @@
</template> </template>
<script src="./playlist-info.js" /> <script src="./playlist-info.js" />
<style scoped src="./playlist-info.css" /> <style scoped lang="sass" src="./playlist-info.sass" />