From 225bc23d2d5b2779102cf88999c0bc70403207b2 Mon Sep 17 00:00:00 2001 From: Akari <60416767+MotooriKashin@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:52:49 +0800 Subject: [PATCH] Release 1.0.2.1 (#11) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 运行环境检查 * 播放器大小自适应 * bump 1.0.2.0 --- dist/manifest.json | 2 +- src/docs/index.css | 21 +++++++++++++++++-- src/docs/index.ts | 1 + src/main/index.ts | 2 +- .../support/index.ts => utils/support.ts} | 0 5 files changed, 22 insertions(+), 4 deletions(-) rename src/{main/support/index.ts => utils/support.ts} (100%) diff --git a/dist/manifest.json b/dist/manifest.json index 72f8a62..ec08791 100644 --- a/dist/manifest.json +++ b/dist/manifest.json @@ -80,5 +80,5 @@ "declarativeNetRequest", "declarativeNetRequestWithHostAccess" ], - "version": "1.0.1.0" + "version": "1.0.2.0" } \ No newline at end of file diff --git a/src/docs/index.css b/src/docs/index.css index 762d611..2dbbccb 100644 --- a/src/docs/index.css +++ b/src/docs/index.css @@ -15,8 +15,25 @@ body { anchor-name: --bofqi-example; &:not(.mode-fullscreen-web) { - inline-size: 1920px !important; - block-size: calc(1920px / 16* 9 + 68px) !important; + inline-size: 980px; + min-inline-size: 980px; + block-size: calc(980px / 16 * 9 + 68px); + + @media screen and (min-width:1400px) { + + & { + inline-size: 1160px; + block-size: calc(1160px / 16 * 9 + 68px); + } + } + + @media screen and (min-width:2500px) { + + & { + inline-size: 1920px; + block-size: calc(1920px / 16 * 9 + 68px); + } + } } } } \ No newline at end of file diff --git a/src/docs/index.ts b/src/docs/index.ts index 0de5373..6216ab1 100644 --- a/src/docs/index.ts +++ b/src/docs/index.ts @@ -1,3 +1,4 @@ import { Player } from "../player"; +import '../utils/support'; document.body.appendChild(new Player()); \ No newline at end of file diff --git a/src/main/index.ts b/src/main/index.ts index 0cf9875..d91f42f 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -1,7 +1,7 @@ // 用户脚本 import { Router, ROUTER } from "./bilibili"; -import "./support/index"; +import "../utils/support"; const router = new Router(); diff --git a/src/main/support/index.ts b/src/utils/support.ts similarity index 100% rename from src/main/support/index.ts rename to src/utils/support.ts