rev 4
This commit is contained in:
@@ -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",
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user