feat: testing mode banner + snapshot storage fields fix

This commit is contained in:
2026-04-17 15:31:14 +03:00
parent d380b2570f
commit a3a4d2eb18
17 changed files with 228 additions and 29 deletions

View File

@@ -33,6 +33,7 @@ interface SightFramePreviewProps {
previewMedia: PreviewMediaData | null;
articles: Article[];
onArticleSelect: (index: number) => void;
previewFontSize?: number;
}
// Matches SightFrame.jsx renderCurrentMedia — same structure, same CSS classes
@@ -151,6 +152,7 @@ export function SightFramePreview({
previewMedia,
articles,
onArticleSelect,
previewFontSize,
}: SightFramePreviewProps) {
const token = localStorage.getItem("token") ?? "";
@@ -235,7 +237,12 @@ export function SightFramePreview({
{/* title: intro-title (300px, 40px centered) or regular (24px with border) */}
<div
className={`sfp-sight-frame-title${isIntro ? " sfp-intro-title" : ""}`}
style={{ lineHeight: isIntro ? undefined : titleLineHeight }}
style={{
lineHeight: isIntro ? undefined : titleLineHeight,
...(isIntro && previewFontSize != null
? { fontSize: `${previewFontSize}px` }
: {}),
}}
>
<p
style={{