[2] fix styles
for MarkdownEditor
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
import {styled} from '@mui/material/styles'
|
import {styled} from '@mui/material/styles'
|
||||||
|
import zIndex from '@mui/material/styles/zIndex'
|
||||||
import SimpleMDE, {SimpleMDEReactProps} from 'react-simplemde-editor'
|
import SimpleMDE, {SimpleMDEReactProps} from 'react-simplemde-editor'
|
||||||
|
|
||||||
const StyledMarkdownEditor = styled('div')(({theme}) => ({
|
const StyledMarkdownEditor = styled('div')(({theme}) => ({
|
||||||
@ -54,6 +55,14 @@ const StyledMarkdownEditor = styled('div')(({theme}) => ({
|
|||||||
color: theme.palette.text.primary,
|
color: theme.palette.text.primary,
|
||||||
borderColor: theme.palette.divider,
|
borderColor: theme.palette.divider,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'& .EasyMDEContainer': {
|
||||||
|
position: 'relative',
|
||||||
|
zIndex: zIndex.modal,
|
||||||
|
},
|
||||||
|
'& .guide': {
|
||||||
|
display: 'none',
|
||||||
|
},
|
||||||
}))
|
}))
|
||||||
|
|
||||||
export const MarkdownEditor = (props: SimpleMDEReactProps) => (
|
export const MarkdownEditor = (props: SimpleMDEReactProps) => (
|
||||||
|
@ -34,6 +34,7 @@ export const localeText = {
|
|||||||
columnsPanelHideAllButton: 'Скрыть все',
|
columnsPanelHideAllButton: 'Скрыть все',
|
||||||
|
|
||||||
// Filter panel text
|
// Filter panel text
|
||||||
|
filterPanelOperator: 'Оператор',
|
||||||
filterPanelAddFilter: 'Добавить фильтр',
|
filterPanelAddFilter: 'Добавить фильтр',
|
||||||
filterPanelDeleteIconLabel: 'Удалить',
|
filterPanelDeleteIconLabel: 'Удалить',
|
||||||
filterPanelOperators: 'Операторы',
|
filterPanelOperators: 'Операторы',
|
||||||
|
@ -130,7 +130,8 @@ export const SightShow = () => {
|
|||||||
<Box
|
<Box
|
||||||
key={article.id}
|
key={article.id}
|
||||||
sx={{
|
sx={{
|
||||||
marginBottom: '8px',
|
marginBottom: '2px',
|
||||||
|
width: '100%',
|
||||||
padding: '14px',
|
padding: '14px',
|
||||||
borderRadius: 2,
|
borderRadius: 2,
|
||||||
border: (theme) => `2px solid ${theme.palette.divider}`,
|
border: (theme) => `2px solid ${theme.palette.divider}`,
|
||||||
|
Reference in New Issue
Block a user