From d300064c5627a4c3831d3eecd6787f6abe5d3b1f Mon Sep 17 00:00:00 2001
From: QiuLiang-99 <1297829693@qq.com>
Date: Fri, 2 May 2025 02:12:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=92=AD=E6=94=BE=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E7=9A=84css?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/renderer/App.vue | 46 +++++--------------
.../components/common/PlayListWindow.vue | 12 -----
2 files changed, 12 insertions(+), 46 deletions(-)
diff --git a/src/renderer/App.vue b/src/renderer/App.vue
index 6825334a..b6cf01c6 100644
--- a/src/renderer/App.vue
+++ b/src/renderer/App.vue
@@ -5,15 +5,10 @@
-
@@ -31,31 +26,15 @@ import PlayListWindow from '@renderer/components/common/PlayListWindow.vue'
import { isShowPlaylist } from '@renderer/store/player/state'
import { setShowPlaylist } from '@renderer/store/player/action'
-const viewRef = ref(null)
-
-const playlistStyle = computed(() => {
- const el = viewRef.value?.$el || viewRef.value
- if (!el) return {}
- const rect = el.getBoundingClientRect()
- return {
- position: 'absolute',
- left: `${rect.left}px`,
- top: `${rect.top}px`,
- height: `${rect.height}px`,
- width: `${rect.width}px`,
- zIndex: 1000,
- }
-})
-
const closePlaylist = () => {
setShowPlaylist(false)
}
useApp()
-onMounted(async () => {
+onMounted(() => {
document.getElementById('root').style.display = 'block'
- await nextTick()
+ nextTick()
})
@@ -63,11 +42,13 @@ onMounted(async () => {
@import './assets/styles/index.less';
@import './assets/styles/layout.less';
+
html, body {
height: 100%;
box-sizing: border-box;
user-select: none;
}
+
#root {
height: 100%;
position: relative;
@@ -112,18 +93,15 @@ html, body {
flex: auto;
min-height: 0;
}
-
-.playlist-window {
- position: relative;
+#playlist {
+ position: absolute;
top: 0;
- left: 0;
- width: 100%;
+ right: 0;
+ width: 320px;
height: 100%;
- border-left: 1px solid var(--color-border);
- background-color: var(--color-main-background);
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
- border-radius: @radius-border;
- overflow: hidden;
z-index: 1000;
+ background-color: #fff;
+ box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
+
diff --git a/src/renderer/components/common/PlayListWindow.vue b/src/renderer/components/common/PlayListWindow.vue
index 33213b2f..66e22593 100644
--- a/src/renderer/components/common/PlayListWindow.vue
+++ b/src/renderer/components/common/PlayListWindow.vue
@@ -32,18 +32,6 @@ const emitClose = () => {