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 = () => {