forked from 1b-agent/opencadstudio-upstream
feat(mtext): segmented Edit/Preview toggle, default to preview
The editor opens in preview by default and switches body views with a segmented Edit | Preview control placed between the toolbar and the body (active tab highlighted). All toolbar properties feed the rendered preview. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
a5ad0666ce
commit
a07af32714
4 files changed
+38
-11
No files matched your search
@@ -135,7 +135,7 @@ impl MTextEditorState {
|
||||
width: "1".to_string(),
|
||||
char_space: "0".to_string(),
|
||||
preview_wires: Vec::new(),
|
||||
show_preview: false,
|
||||
show_preview: true,
|
||||
attachment: AttachmentPoint::TopLeft,
|
||||
line_spacing: 1.0,
|
||||
// Default box ~20 characters wide; overwritten with the entity's
|
||||
|
||||
Reference in new issue
Block a user