fix: make json edit modal have fixed height and be readOnly if its on View mode (#8680)
Fixed dict area modal to not allow editing of a json when not on edit mode
This commit is contained in:
parent
eeb7f246fe
commit
8f4d1cb902
1 changed files with 5 additions and 4 deletions
|
|
@ -102,14 +102,15 @@ export default function DictAreaModal({
|
||||||
);
|
);
|
||||||
|
|
||||||
const renderContent = () => (
|
const renderContent = () => (
|
||||||
<BaseModal.Content>
|
<BaseModal.Content overflowHidden>
|
||||||
<div className="flex h-full w-full flex-col transition-all">
|
<div className="flex h-[500px] w-full flex-col transition-all">
|
||||||
<JsonEditor
|
<JsonEditor
|
||||||
data={{ json: value }}
|
data={{ json: value }}
|
||||||
jsonRef={jsonEditorRef}
|
jsonRef={jsonEditorRef}
|
||||||
height="400px"
|
readOnly={!onChange}
|
||||||
|
height="500px"
|
||||||
width="100%"
|
width="100%"
|
||||||
className="h-[400px] w-full overflow-visible"
|
className="h-full w-full overflow-auto"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</BaseModal.Content>
|
</BaseModal.Content>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue