agent_crew
agent_crew copied to clipboard
Fix WYSIWYG editor scroll, change detection, and button overlap in team settings
Bug Description
Three related issues in the rich text editor (MarkdownEditor) within team settings:
- No scroll in WYSIWYG mode: The editor content area didn't allow scrolling when content exceeded the modal height
- Change detection not working: Editing text in WYSIWYG mode didn't trigger the dirty state, so Discard/Save buttons never appeared
- Button overlap: When switching from RAW to WYSIWYG, the Discard/Save buttons appeared behind the editor and couldn't be interacted with
Root Cause
- TipTap doesn't fire
onUpdateon initialization, soinitialSyncDoneflag in InstructionsEditor was never set, causing the first real edit to be treated as normalization (resettingsavedContent = content, keepingisDirtyalways false) - Missing flex layout propagation from SettingsModal to MarkdownEditor prevented proper overflow handling
- No
overflow-y-autoon the WYSIWYG content area
Fix (v0.4.12)
- Added
onCreatecallback to TipTap editor to emit normalized markdown on initialization - Wrapped WYSIWYG content in scrollable flex container (
min-h-0 + flex-1 + overflow-y-auto) - Added
flex-shrink-0to mode toggle bar - Propagated
flex flex-colfrom InstructionsEditor to MarkdownEditor
Files changed: MarkdownEditor.tsx, SkillStatusPanel.tsx
Fixed in v0.4.12 (commit d4442e3)