Skip to content

Commit

Permalink
fix mui-code v-range; mui-code styled collapsed btn;
Browse files Browse the repository at this point in the history
  • Loading branch information
elbakerino committed Oct 14, 2022
1 parent ef8ce65 commit 9326436
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@codemirror/language": "^6.1.0",
"@ui-schema/dictionary": "~0.0.10",
"@ui-schema/ds-material": "~0.4.0-alpha.5",
"@ui-schema/kit-codemirror": "~0.1.0",
"@ui-schema/kit-codemirror": "~0.1.0-alpha.1",
"@ui-schema/material-code": "~0.4.0",
"@ui-schema/ui-schema": "~0.4.1",
"immutable": "^4.0.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/material-code/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/material-code/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ui-schema/material-code",
"version": "0.4.1",
"version": "0.4.2",
"description": "Code editor widgets using CodeMirror, with Material-UI styling for UI-Schema",
"homepage": "https://ui-schema.bemit.codes/docs/material-code/material-code",
"author": {
Expand Down Expand Up @@ -50,7 +50,7 @@
"@codemirror/state": "^6.0.0",
"@codemirror/view": "^6.0.0",
"@codemirror/language": "^6.1.0",
"@ui-schema/kit-codemirror": "~0.1.0",
"@ui-schema/kit-codemirror": "~0.1.0-alpha.1",
"@ui-schema/ds-material": "~0.4.0-alpha",
"@ui-schema/ui-schema": "~0.4.0-alpha",
"immutable": "^4.0.0",
Expand All @@ -63,7 +63,7 @@
"@codemirror/state": "^6.0.0",
"@codemirror/view": "^6.0.0",
"@codemirror/language": "^6.1.0",
"@ui-schema/kit-codemirror": "~0.1.0",
"@ui-schema/kit-codemirror": "~0.1.0-alpha.1",
"@ui-schema/ds-material": "~0.4.0-alpha",
"@ui-schema/ui-schema": "~0.4.0-alpha",
"immutable": "^4.0.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/material-code/src/useEditorTheme/useEditorTheme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ export const useEditorTheme = (
'& .cm-gutters .cm-lineNumbers .cm-gutterElement': {
paddingLeft: spacing(1),
},
'&.cm-editor .cm-foldPlaceholder': {
padding: '0 ' + spacing(0.5),
backgroundColor: palette.mode === 'light' ? palette.background.default : palette.background.paper,
borderColor: palette.divider,
color: palette.primary.main,
},
},
{dark: palette.mode === 'dark'},
),
Expand Down

0 comments on commit 9326436

Please sign in to comment.