diff --git a/app/web/src/components/pages/DanmakuSettingsBody.tsx b/app/web/src/components/pages/DanmakuSettingsBody.tsx index aafb513..7eedb4f 100644 --- a/app/web/src/components/pages/DanmakuSettingsBody.tsx +++ b/app/web/src/components/pages/DanmakuSettingsBody.tsx @@ -24,7 +24,7 @@ function readSettings(): DanmakuSettings { return { enabled, opacity: Math.min(1, Math.max(0, opacityRaw)), - density: Math.min(3, Math.max(0.1, densityRaw)), + density: Math.min(1, Math.max(0.1, densityRaw)), }; } catch { return FALLBACK; @@ -79,7 +79,7 @@ function Inner(props: { locale: Locale }) { setDensity(Number(e.target.value))} diff --git a/app/web/src/components/pages/WatchBody.tsx b/app/web/src/components/pages/WatchBody.tsx index fd9ab43..016893d 100644 --- a/app/web/src/components/pages/WatchBody.tsx +++ b/app/web/src/components/pages/WatchBody.tsx @@ -31,7 +31,7 @@ function readDanmakuPrefs(): DanmakuPrefs { return { enabled, opacity: Math.min(1, Math.max(0, opacityRaw)), - density: Math.min(3, Math.max(0.1, densityRaw)), + density: Math.min(1, Math.max(0.1, densityRaw)), }; } catch { return fallback; diff --git a/packages/types/src/media-schemas.ts b/packages/types/src/media-schemas.ts index 808ec50..90b3516 100644 --- a/packages/types/src/media-schemas.ts +++ b/packages/types/src/media-schemas.ts @@ -81,7 +81,7 @@ export const danmakuSchemas = { settings: z.object({ enabled: z.boolean().default(true), opacity: z.number().min(0).max(1).default(0.8), - density: z.number().min(0.1).max(3).default(1), + density: z.number().min(0.1).max(1).default(1), }), getSettings: z.object({}).optional(), };