Mar 27 2024 03:33 AM
I have a Sharepoint online page where you can see a long list. My client did not like that on the right you can see 2 vertical scrollbars. I told them one is for the page and the other one is for the list. Is there a way to remove that from the list, so you should only be able to use 1 scrollbar to scroll through your list?
Mar 27 2024 10:28 PM
Are you using SharePoint default list web part on site page? Did you customize the list view using JSON formatting?
There is no way to change the "code" / functionality of SharePoint default list web part using out of the box capabilities.
However, you maybe able to customize list view using JSON formatting so that scroll bar will be removed from page. Check:
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Mar 28 2024 05:02 AM
Mar 28 2024 05:06 AM
Can you share current JSON used for list view formatting?
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Mar 28 2024 05:27 AM
Mar 28 2024 06:51 AM
@Sharepointnoob Can you try using this once?
{
"$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json",
"hideSelection": true,
"hideColumnHeader": true,
"rowFormatter": {
"elmType": "div",
"style": {
"display": "flex",
"padding": "5px",
"margin-bottom": "5px",
"margin-right": "100px",
"width": "90%",
"overflow": "hidden"
},
"children": [
{
"elmType": "div",
"children": [
{
"elmType": "div",
"attributes": {
"class": "ms-fontColor-themePrimary ms-fontColor-themeDark--hover"
},
"style": {
"display": "block",
"font-size": "18px",
"font-weight": "500",
"padding-bottom": "0px",
"padding-top": "0px",
"text-decoration": "none",
"text-overflow": "ellipsis",
"white-space": "normal"
},
"txtContent": "=[$Title]"
},
{
"elmType": "div",
"style": {
"font-size": "14px",
"white-space": "normal",
"overflow": "hidden",
"text-align": "left"
},
"txtContent": "=[$Description]"
}
]
}
]
}
}
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
Mar 28 2024 07:18 AM
Apr 02 2024 12:15 AM