From 4f4f2b09e3f29718eaade4a932803f752b223476 Mon Sep 17 00:00:00 2001 From: qier222 Date: Mon, 12 Apr 2021 14:12:15 +0800 Subject: [PATCH] fix: bugs --- src/components/Cover.vue | 2 ++ src/components/CoverRow.vue | 3 ++- src/components/DailyTracksCard.vue | 31 ++++++++++++++++++++++-------- src/components/Navbar.vue | 4 ++-- src/main.js | 17 ++++++++++++++++ src/router/index.js | 12 +++++++++++- src/utils/Player.js | 27 +++++++++++++++----------- src/views/search.vue | 4 +++- src/views/settings.vue | 14 +++++++++----- 9 files changed, 85 insertions(+), 29 deletions(-) diff --git a/src/components/Cover.vue b/src/components/Cover.vue index 705941b..d81cfc7 100644 --- a/src/components/Cover.vue +++ b/src/components/Cover.vue @@ -100,6 +100,7 @@ img { border-radius: 0.75em; width: 100%; user-select: none; + aspect-ratio: 1 / 1; } .cover-hover { @@ -156,6 +157,7 @@ img { z-index: -1; background-size: cover; border-radius: 0.75em; + aspect-ratio: 1 / 1; } .fade-enter-active, diff --git a/src/components/CoverRow.vue b/src/components/CoverRow.vue index 164bccc..1aa7dca 100644 --- a/src/components/CoverRow.vue +++ b/src/components/CoverRow.vue @@ -10,7 +10,7 @@ :imageUrl="getImageUrl(item)" :type="type" :id="item.id" - :playButtonSize="type === 'artist' ? 26 : 22" + :playButtonSize="type === 'artist' ? 26 : playButtonSize" />
@@ -55,6 +55,7 @@ export default { showPlayCount: { type: Boolean, default: false }, columnNumber: { type: Number, default: 5 }, gap: { type: String, default: "44px 24px" }, + playButtonSize: { type: Number, default: 22 }, }, computed: { rowStyles() { diff --git a/src/components/DailyTracksCard.vue b/src/components/DailyTracksCard.vue index 4fdf40a..b748346 100644 --- a/src/components/DailyTracksCard.vue +++ b/src/components/DailyTracksCard.vue @@ -21,8 +21,16 @@