fix(ui): json fields can now take a maxHeight in admin props and there's a mininum height of 3 lines (#9018)

JSON fields are now 3 lines minimum in height like so:

![image](https://github.com/user-attachments/assets/0b2ad47e-6929-4836-ac9d-022ffcdc6f27)


This helps fix an issue where long content is wrapped:

![image](https://github.com/user-attachments/assets/40fc2426-11d7-4ca5-a716-3347bb0d5a4b)

Previously it would show like this:

![image](https://github.com/user-attachments/assets/7f321220-ffa2-40ff-bc4b-2b26d21d4911)
This commit is contained in:
Paul
2024-11-05 13:43:51 -06:00
committed by GitHub
parent 50f3ca93ee
commit 3ca203e08c
5 changed files with 14 additions and 4 deletions

View File

@@ -11,6 +11,9 @@ const JSON: CollectionConfig = {
{
name: 'json',
type: 'json',
admin: {
maxHeight: 542,
},
jsonSchema: {
fileMatch: ['a://b/foo.json'],
schema: {