Enhance TemplateEditor layout and styling
- Updated TemplateEditor component to include padding in Card styles for improved layout. - Added a new CSS class for .cm-editor to set its width to fit-content, enhancing the editor's appearance. - Ensured consistent styling adjustments to improve user experience in the editor interface.
This commit is contained in:
parent
d928cf45b0
commit
d0d500de40
@ -1314,6 +1314,10 @@ span.ant-skeleton-input.ant-skeleton-input-sm.text-skeleton {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cm-editor {
|
||||||
|
width: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
.cm-errorLine {
|
.cm-errorLine {
|
||||||
background-color: color-mix(in srgb, var(--color-error) 15%, transparent);
|
background-color: color-mix(in srgb, var(--color-error) 15%, transparent);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -190,7 +190,7 @@ const TemplateEditor = ({
|
|||||||
<Card
|
<Card
|
||||||
spinning={loading}
|
spinning={loading}
|
||||||
style={style}
|
style={style}
|
||||||
styles={{ body: { height: '100%' } }}
|
styles={{ body: { height: '100%', padding: '22px' } }}
|
||||||
>
|
>
|
||||||
<TemplatePreview
|
<TemplatePreview
|
||||||
objectData={objectData?.testObject}
|
objectData={objectData?.testObject}
|
||||||
@ -208,7 +208,10 @@ const TemplateEditor = ({
|
|||||||
{collapseState.editor == true && (
|
{collapseState.editor == true && (
|
||||||
<Splitter.Panel>
|
<Splitter.Panel>
|
||||||
<Spin spinning={loading} indicator={<LoadingOutlined />}>
|
<Spin spinning={loading} indicator={<LoadingOutlined />}>
|
||||||
<Card style={style} styles={{ body: { height: '100%' } }}>
|
<Card
|
||||||
|
style={style}
|
||||||
|
styles={{ body: { height: '100%', padding: '22px' } }}
|
||||||
|
>
|
||||||
<Flex vertical gap={'middle'} style={{ height: '100%' }}>
|
<Flex vertical gap={'middle'} style={{ height: '100%' }}>
|
||||||
<Flex gap={'small'} align={'stretch'}>
|
<Flex gap={'small'} align={'stretch'}>
|
||||||
<Alert
|
<Alert
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user