This commit is contained in:
Daniil
2026-04-07 13:42:23 +03:00
parent d648678c68
commit 46f34bdcac
59 changed files with 2708 additions and 1312 deletions
@@ -18,7 +18,7 @@ interface IStylePreviewProps {
aspectRatio?: number
}
const SMALL_SCALE = 0.65
const SMALL_SCALE = 0.45
const buildContainerStyles = (
config: CaptionStyleConfig,
@@ -107,7 +107,7 @@ export const StylePreview: FunctionComponent<IStylePreviewProps> = ({
<div
style={{
...buildContainerStyles(safeConfig, scale),
maxWidth: "100%",
maxWidth: `${safeConfig.layout?.max_width_pct ?? 90}%`,
boxSizing: "border-box",
}}
>