fix: subtitle

This commit is contained in:
Gabe
2025-10-12 14:36:28 +08:00
parent a6bcafa8f6
commit 1992908a85

View File

@@ -98,10 +98,10 @@ export const DEFAULT_TRANBOX_SETTING = {
const SUBTITLE_WINDOW_STYLE = `padding: 0.5em 1em;
background-color: rgba(0, 0, 0, 0.5);
color: white;
line-height: 1.2;
line-height: 1.3;
text-shadow: 1px 1px 2px black;
opacity: 0;
transition: opacity 0.2s ease-in-out;
transition: opacity 0.3s ease-in-out;
display: inline-block`;
const SUBTITLE_ORIGIN_STYLE = `font-size: clamp(1.5rem, 3cqw, 3rem);`;