Skip to content

Commit 86b7156

Browse files
committed
feat(text-editor): autohide minimap for monaco editor
1 parent d6e56e1 commit 86b7156

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pages/home/previews/text-editor.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ function Editor(props: { data?: string | ArrayBuffer; contentType?: string }) {
5858
onChange={(value) => {
5959
setValue(value)
6060
}}
61+
minimap={{ autohide: true }}
6162
/>
6263
<Show when={userCan("write") || objStore.write}>
6364
<Button loading={loading()} onClick={onSave}>

0 commit comments

Comments
 (0)