From d0c0f406380ecaec38f7ded0a13e3c6f3d600ed4 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Wed, 25 Oct 2023 18:37:57 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E5=90=AB?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=88=86=E4=BA=AB=E5=9B=BE=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix #54 --- src/assets/css/post-parser.css | 13 +++++++++---- src/plugins/Mys/utils/parsePost.ts | 8 ++------ 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/assets/css/post-parser.css b/src/assets/css/post-parser.css index 6e82595b..246896ba 100644 --- a/src/assets/css/post-parser.css +++ b/src/assets/css/post-parser.css @@ -81,12 +81,17 @@ width: 800px; height: 450px; border-radius: 10px; + display: flex; + align-items: center; + justify-content: center; + border: 1px solid var(--common-shadow-2); + overflow: hidden; } :deep(.mys-post-vod-cover) { - width: 800px; - height: 450px; - border-radius: 10px; + max-width: 800px; + max-height: 450px; + object-fit: contain; } :deep(.mys-post-vod-icon) { @@ -104,7 +109,7 @@ position: absolute; right: 10px; bottom: 10px; - padding: 5px; + padding: 0 5px; border-radius: 5px; background: rgba(0, 0, 0, 0.5); color: #ffffff; diff --git a/src/plugins/Mys/utils/parsePost.ts b/src/plugins/Mys/utils/parsePost.ts index 0a544d62..c46865df 100644 --- a/src/plugins/Mys/utils/parsePost.ts +++ b/src/plugins/Mys/utils/parsePost.ts @@ -65,12 +65,8 @@ function getVodTime(duration: number): string { if (hours > 0) { result += `${hours.toString().padStart(2, "0")}:`; } - if (minutes > 0) { - result += `${minutes.toString().padStart(2, "0")}:`; - } - if (seconds > 0) { - result += `${seconds.toString().padStart(2, "0")}`; - } + result += `${minutes.toString().padStart(2, "0")}:`; + result += `${seconds.toString().padStart(2, "0")}`; return result; }