Make JSON input the size of its content

This commit is contained in:
Mark Kaylor 2023-01-27 10:21:44 +01:00
parent 15247d1440
commit e45fb7d63f

View File

@ -7,7 +7,6 @@ import { Box } from '@strapi/design-system/Box';
import { Flex } from '@strapi/design-system/Flex';
import { Typography } from '@strapi/design-system/Typography';
import { JSONInput } from '@strapi/design-system/JSONInput';
import { pxToRem } from '@strapi/helper-plugin';
import getDefaultMessage from '../utils/getActionTypesDefaultMessages';
import ActionItem from './ActionItem';
@ -83,7 +82,6 @@ const ActionBody = ({ status, data, formattedDate }) => {
<JSONInput
value={JSON.stringify(payload, null, 2)}
disabled
height={pxToRem(150)}
label={formatMessage({
id: 'Settings.permissions.auditLogs.payload',
defaultMessage: 'Payload',