From 54b551722229107c643e59e9b64cd06c042176be Mon Sep 17 00:00:00 2001 From: lyswhut Date: Thu, 10 Nov 2022 18:35:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=92=AD=E6=94=BE=E6=A0=8FUI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/layout/PlayBar/index.vue | 64 +++++++++++-------- 1 file changed, 39 insertions(+), 25 deletions(-) diff --git a/src/renderer/components/layout/PlayBar/index.vue b/src/renderer/components/layout/PlayBar/index.vue index 4e529f84..4c81e281 100644 --- a/src/renderer/components/layout/PlayBar/index.vue +++ b/src/renderer/components/layout/PlayBar/index.vue @@ -8,15 +8,17 @@
{{ title }}
-
{{ statusText }}
+
{{ statusText }}
-
- {{ nowPlayTimeStr }} -
- +
+
+ {{ nowPlayTimeStr }} + / + {{ maxPlayTimeStr }} +
+ +
- - {{ maxPlayTimeStr }}
@@ -253,33 +255,45 @@ export default { max-width: 100%; } +.timeContainer { + padding: 15px 0; + &:hover { + .progress { + opacity: 1; + } + } +} .timeContent { - width: 30%; - // position: relative; + // width: 30%; + position: relative; flex: none; color: var(--color-300); - font-size: 13px; + font-size: 12px; // padding-left: 10px; - display: flex; - flex-flow: row nowrap; - align-items: center; + // display: flex; + // flex-flow: column nowrap; + // align-items: center; + padding-bottom: 3px; } .progress { - // position: absolute; - // top: 0; - // left: 0; - // width: 100%; + position: absolute; + top: 100%; + left: 0; + width: 100%; flex: auto; // width: 160px; - position: relative; + // position: relative; // padding-bottom: 6px; - margin: 0 8px; - padding: 8px 0; - // height: 15px; - // .progressBar { - // height: 4px; - // // border-radius: 0; - // } + // margin: 0 8px; + padding: 2px 0; + height: 8px; + transition: opacity @transition-normal; + opacity: .24; + + .progressBar { + height: 2px; + border-radius: 0; + } } .time { display: flex;