fix(MemoEditor): restore wrapper styles removed by refactoring
- Add back Tailwind utility classes for proper layout - Restore padding, border, background, and flex styles - Fix missing styles on memo-editor-wrapper element
This commit is contained in:
parent
735dd1fe4b
commit
f2bc115a1d
1 changed files with 8 additions and 2 deletions
|
|
@ -122,10 +122,16 @@ const MemoEditorImpl: React.FC<Props> = ({
|
||||||
<MemoEditorContext.Provider value={legacyContextValue}>
|
<MemoEditorContext.Provider value={legacyContextValue}>
|
||||||
<FocusModeOverlay isActive={state.ui.isFocusMode} onToggle={actions.toggleFocusMode} />
|
<FocusModeOverlay isActive={state.ui.isFocusMode} onToggle={actions.toggleFocusMode} />
|
||||||
|
|
||||||
<div className={cn("memo-editor-wrapper", state.ui.isFocusMode && "focus-mode", className)}>
|
<div
|
||||||
<EditorToolbar onSave={handleSave} onCancel={onCancel} />
|
className={cn(
|
||||||
|
"group relative w-full flex flex-col justify-start items-start bg-card px-4 pt-3 pb-2 rounded-lg border border-border",
|
||||||
|
state.ui.isFocusMode && "focus-mode",
|
||||||
|
className,
|
||||||
|
)}
|
||||||
|
>
|
||||||
<EditorContent ref={editorRef} placeholder={placeholder} autoFocus={autoFocus} />
|
<EditorContent ref={editorRef} placeholder={placeholder} autoFocus={autoFocus} />
|
||||||
<EditorMetadata />
|
<EditorMetadata />
|
||||||
|
<EditorToolbar onSave={handleSave} onCancel={onCancel} />
|
||||||
</div>
|
</div>
|
||||||
</MemoEditorContext.Provider>
|
</MemoEditorContext.Provider>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue