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