Forum Discussion
Matthew Carter
Jan 24, 2023Iron Contributor
Where do I add style word-break keep-all in Microsoft Lists for JSON
Sorry I am having trouble figuring out where to add some JSON for word wrap. I don't know where to add style word-break keep all I have a Microsoft Lists that I'd like to have the wo...
Gfox77
Mar 24, 2023Copper Contributor
Hi Matt, not sure if you figured this out but I just did.
Remove the below class in your JSON
sp-card-label
So for example for the Name (display name of a document library)
"children": [
{
"elmType": "p",
"attributes": {
"class": "ms-fontColor-neutralSecondary sp-card-label"
},
"txtContent": "[!FriendlyTitle.DisplayName]"
},
and you will find it stops forcing the text wrap.
Note if you're using a custom line of text field it is - sp-card-content