SharePoint / SharePoint/sp-dev-docs

sp-row-card width inadvertently extended to the right of the screen (previously just fits with the width)

Open
#10,176 6 comments 1 reaction 1 assignee View on GitHub

@Ashlesha-MSFT is already working on this.

Since Mar 31, 2025.

sharepoint-developer-support type:bug-confirmed type:bug-suspected
Dominant language
PowerShell
Stars
1.4k
Forks
1.1k
Avg merge
4d 12h
Merged PRs (30d)
12

Description

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
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)
Additional environment details
  • browser version
  • SPFx version
  • Node.js version
  • etc
Describe the bug / error

When the card was functional and not stretched out to the right of the screen: https://github.com/z3019494/List-Formatting/blob/master/view-samples/student-class-learning-tracker/assets/screenshot.gif

In recent days:
https://hvpslam-my.sharepoint.com/:v:/g/personal/hubert_lamfamily_info/EUnK-iJxP7dMp4tNsGDl_Y4B1GUf83RBV3a6p8RBVbSQbw?e=uMr9ct

Steps to reproduce

On an existing list where sp-row-card has been used to format the list, the horizontal scrollbar is visible and scrollable to the right, when the card itself should not be exceeding the width of the screen.

Expected behavior

Card width should not exceed the width of the screen

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.