From da46c55db7144ff7577de45ca8d17f38c7d5f7a8 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 16 Aug 2022 17:43:33 -0700 Subject: [PATCH] fix: :zap: Better import for plyr --- package.json | 2 +- .../client/src/components/media-banner.vue | 19 ++++++++++++------- .../client/src/components/media-video.vue | 6 ++++-- packages/client/src/init.ts | 4 ---- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 506e48689c..e3c6eb6b15 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "misskey", - "version": "12.118.1-calc.4", + "version": "12.118.1-calc.4.1", "codename": "aqua", "repository": { "type": "git", diff --git a/packages/client/src/components/media-banner.vue b/packages/client/src/components/media-banner.vue index 5093f11e97..7382e953a1 100644 --- a/packages/client/src/components/media-banner.vue +++ b/packages/client/src/components/media-banner.vue @@ -6,13 +6,15 @@ {{ $ts.clickToShow }}
-
import { onMounted } from 'vue'; import * as misskey from 'misskey-js'; +import VuePlyr from 'vue-plyr'; import { ColdDeviceStorage } from '@/store'; +import 'vue-plyr/dist/vue-plyr.css'; const props = withDefaults(defineProps<{ media: misskey.entities.DriveFile; @@ -53,6 +57,7 @@ onMounted(() => { border-radius: 4px; margin-top: 4px; overflow: hidden; + --plyr-color-main: var(--accent); > .download, > .sensitive { diff --git a/packages/client/src/components/media-video.vue b/packages/client/src/components/media-video.vue index 061e9f1c14..0dfd304aa2 100644 --- a/packages/client/src/components/media-video.vue +++ b/packages/client/src/components/media-video.vue @@ -6,7 +6,7 @@
- + - +
@@ -28,7 +28,9 @@