feat: testing mode banner + snapshot storage fields fix
This commit is contained in:
@@ -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={{
|
||||
|
||||
Reference in New Issue
Block a user