List view formatting (gallery): wrong size of customCardProps (MS lists view in Sharepoint list)
Target SharePoint environment
SharePoint Online
What SharePoint development model, framework, SDK or API is this about?
Declarative list formatting
Developer environment
None
What browser(s) / client(s) have you tested
- [ ] 💥 Internet Explorer
- [ ] 💥 Microsoft Edge
- [X] 💥 Google Chrome
- [ ] 💥 FireFox
- [ ] 💥 Safari
- [ ] mobile (iOS/iPadOS)
- [ ] mobile (Android)
- [ ] not applicable
- [ ] other (enter in the "Additional environment details" area below)
Additional environment details
Chrome 129
vti_extenderversion:SR|16.0.0.25318
Describe the bug / error
Size of custom cards (customCardProps) is wrong if used in gallery view in new list experience. This is a regression as this was not the case for the previous SharePoint list experience.
Following view sample can be used as reference: view-samples/praise-cards
Custom card has the same size as the main card (300x400). Although, this size was not defined within customCardProps.
Definition of main card size:
Definition of customCardProps has no influence on the size of the custom card.
Steps to reproduce
- Create a new list
- Add columns according to view-samples/praise-cards
- Add a new gallery view
- Add json syntax according to view-samples/praise-cards
- Add a new list item with dummy data
- Move mouse over the "heart" icon to show custom card
Expected behavior
Size of custom card shall be as defined within customCardProps. This is how it's supposed to look according to the formatting sample:
@XueSheng-GIT Thanks for reporting this. I will check with the team and update on this.
@XueSheng-GIT The fix is done. It will be on prod around 12th November.
Seems to be fixed now. @deepamajhi thanks for taking care!