Skip to content

Commit a8245ef

Browse files
committed
fix: markdown preview pane alignment - match output toolbar structure to input editor
1 parent 3a80584 commit a8245ef

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

‎src/tools/text/markdown/component.tsx‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,17 @@ export default function MarkdownPreview() {
4141
output={
4242
<div className="code-editor" style={{ '--code-editor-min-height': 'var(--editor-height-default)' } as React.CSSProperties}>
4343
<div className="code-editor__toolbar">
44-
<span className="code-editor__title">{text.output}</span>
44+
<div className="code-editor__title-group">
45+
<span className="code-editor__title">{text.output}</span>
46+
</div>
47+
</div>
48+
<div className="code-editor__surface">
49+
<div
50+
className="markdown-preview"
51+
style={{ padding: '10px 12px', overflow: 'auto', minHeight: 'var(--editor-height-default)', width: '100%' }}
52+
dangerouslySetInnerHTML={{ __html: html }}
53+
/>
4554
</div>
46-
<div
47-
className="markdown-preview"
48-
style={{ padding: '16px', overflow: 'auto', minHeight: 'var(--editor-height-default)' }}
49-
dangerouslySetInnerHTML={{ __html: html }}
50-
/>
5155
</div>
5256
}
5357
/>

0 commit comments

Comments
 (0)