chore(react/type_widget): bring back on error opacity

This commit is contained in:
Elian Doran 2025-09-20 13:47:12 +03:00
parent 8caaa99415
commit 02017ebd9d
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -47,8 +47,8 @@ export default function SplitEditor({ note, error, splitOptions, previewContent,
); );
const preview = ( const preview = (
<div className={`note-detail-split-preview-col ${error ? "on-error" : ""}`}> <div className="note-detail-split-preview-col">
<div className="note-detail-split-preview"> <div className={`note-detail-split-preview ${error ? "on-error" : ""}`}>
{previewContent} {previewContent}
</div> </div>
<div className="btn-group btn-group-sm map-type-switcher content-floating-buttons preview-buttons bottom-right" role="group"> <div className="btn-group btn-group-sm map-type-switcher content-floating-buttons preview-buttons bottom-right" role="group">

View File

@ -33,7 +33,7 @@ export default function SvgSplitEditor({ renderSvg, ...props }: SvgSplitEditorPr
return ( return (
<SplitEditor <SplitEditor
error="Hi there" error={error}
onContentChanged={onContentChanged} onContentChanged={onContentChanged}
previewContent={( previewContent={(
<RawHtmlBlock className="render-container" html={svg} /> <RawHtmlBlock className="render-container" html={svg} />