Skip to content

Commit 0834afe

Browse files
committed
fix(rich-md-editor): hide the code line-wrap toggle in read-only
1 parent f8d1841 commit 0834afe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor

apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/code-block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function CodeBlockView({ node, updateAttributes, editor, getPos }: ReactNodeView
179179
{label}
180180
</span>
181181
))}
182-
{!isMermaid && (
182+
{!isMermaid && editor.isEditable && (
183183
<button
184184
type='button'
185185
aria-label='Toggle line wrap'

0 commit comments

Comments
 (0)