The solution for this type of the image display is to utilize the SPO column formatting. We quickly added the following column formatting to the column and it will display the image in desired size.
{
"elmType": "div",
"children": [
{
"elmType":
"img",
"attributes": {
"src":
"@currentField",
"title": "=if(@currentField == '', 'No picture available',
@currentField)"
},
"style": {
"position": "relative",
"top":
"50%",
"left":
"50%",
"width":
"480px",
"height": "auto",
"margin-left": "-50%",
"margin-top":
"0%"
}
}
]
}
Bow you should fell conformable to adjust any SharePoint online list column based on what you prefer.
No comments:
Post a Comment