fix: bugs

This commit is contained in:
qier222 2020-11-01 21:46:05 +08:00
parent ff94f011aa
commit f17d61c268
No known key found for this signature in database
GPG Key ID: 9C85007ED905F14D
3 changed files with 21 additions and 22 deletions

View File

@ -116,6 +116,7 @@ hr {
cursor: default;
img {
height: 38px;
width: 38px;
border-radius: 4px;
}
.info {

View File

@ -1,27 +1,25 @@
<template>
<div style="position: relative">
<transition name="zoom">
<div
class="cover"
@mouseover="focus = true"
@mouseleave="focus = false"
:style="coverStyle"
:class="{
'hover-float': hoverEffect,
'hover-play-button': showPlayButton,
}"
@click="clickToPlay ? play() : goTo()"
<div
class="cover"
@mouseover="focus = true"
@mouseleave="focus = false"
:style="coverStyle"
:class="{
'hover-float': hoverEffect,
'hover-play-button': showPlayButton,
}"
@click="clickToPlay ? play() : goTo()"
>
<button
class="play-button"
v-if="showPlayButton"
:style="playButtonStyle"
@click.stop="playButtonClicked"
>
<button
class="play-button"
v-if="showPlayButton"
:style="playButtonStyle"
@click.stop="playButtonClicked"
>
<svg-icon icon-class="play" />
</button>
</div>
</transition>
<svg-icon icon-class="play" />
</button>
</div>
<transition name="fade" v-if="hoverEffect">
<img class="shadow" v-show="focus" :src="url" :style="shadowStyle"

View File

@ -2,7 +2,7 @@
<div class="track-list" :style="listStyles">
<ContextMenu ref="menu">
<div class="item-info">
<img :src="rightClickedTrack.al.picUrl | resizeImage(128)" />
<img :src="rightClickedTrack.al.picUrl | resizeImage(224)" />
<div class="info">
<div class="title">{{ rightClickedTrack.name }}</div>
<div class="subtitle">{{ rightClickedTrack.ar[0].name }}</div>