[2] fix styles for MarkdownEditor

This commit is contained in:
maxim
2025-03-17 02:18:11 +03:00
parent a06100a8e2
commit b0181f988b
3 changed files with 12 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import {styled} from '@mui/material/styles'
import zIndex from '@mui/material/styles/zIndex'
import SimpleMDE, {SimpleMDEReactProps} from 'react-simplemde-editor'
const StyledMarkdownEditor = styled('div')(({theme}) => ({
@ -54,6 +55,14 @@ const StyledMarkdownEditor = styled('div')(({theme}) => ({
color: theme.palette.text.primary,
borderColor: theme.palette.divider,
},
'& .EasyMDEContainer': {
position: 'relative',
zIndex: zIndex.modal,
},
'& .guide': {
display: 'none',
},
}))
export const MarkdownEditor = (props: SimpleMDEReactProps) => (

View File

@ -34,6 +34,7 @@ export const localeText = {
columnsPanelHideAllButton: 'Скрыть все',
// Filter panel text
filterPanelOperator: 'Оператор',
filterPanelAddFilter: 'Добавить фильтр',
filterPanelDeleteIconLabel: 'Удалить',
filterPanelOperators: 'Операторы',

View File

@ -130,7 +130,8 @@ export const SightShow = () => {
<Box
key={article.id}
sx={{
marginBottom: '8px',
marginBottom: '2px',
width: '100%',
padding: '14px',
borderRadius: 2,
border: (theme) => `2px solid ${theme.palette.divider}`,