Conversation
Center the ring vertically and horizontally within the widget card by replacing the styled Container with a Flex primitive, rebalancing the SVG y-offset from 25 to 30, and removing the redundant PerformanceScoreSubtext element.
Add an autoSize prop to PerformanceScoreRingWithTooltips that uses viewBox with 100% width/height so the SVG scales to fill its container. The wheel widget opts in; all other callers keep fixed 220x200 sizing.
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Default
yoffset change affects all callers unintentionally- I restored the shared default
yoffset to 25 and passedy={30}only in the dashboard wheel widget caller so non-dashboard views keep their original positioning.
- I restored the shared default
Or push these changes by commenting:
@cursor push 87cc03d62c
Preview (87cc03d62c)
diff --git a/static/app/views/dashboards/widgets/wheelWidget/wheelWidgetVisualization.tsx b/static/app/views/dashboards/widgets/wheelWidget/wheelWidgetVisualization.tsx
--- a/static/app/views/dashboards/widgets/wheelWidget/wheelWidgetVisualization.tsx
+++ b/static/app/views/dashboards/widgets/wheelWidget/wheelWidgetVisualization.tsx
@@ -33,6 +33,7 @@
<Flex justify="center" align="center" direction="column" height="100%">
<PerformanceScoreRingWithTooltips
autoSize
+ y={30}
projectScore={projectScore}
text={score}
width={220}
diff --git a/static/app/views/insights/browser/webVitals/components/performanceScoreRingWithTooltips.tsx b/static/app/views/insights/browser/webVitals/components/performanceScoreRingWithTooltips.tsx
--- a/static/app/views/insights/browser/webVitals/components/performanceScoreRingWithTooltips.tsx
+++ b/static/app/views/insights/browser/webVitals/components/performanceScoreRingWithTooltips.tsx
@@ -150,7 +150,7 @@
inPerformanceWidget = false,
size = 140,
x = 40,
- y = 30,
+ y = 25,
labelHeightPadding = 14,
radiusPadding = 4,
}: Props) {This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
static/app/views/insights/browser/webVitals/components/performanceScoreRingWithTooltips.tsx
Outdated
Show resolved
Hide resolved
Revert the shared default y from 30 back to 25 so other callers
(pageOverviewSidebar, performanceScoreChart) are unaffected. Pass
y={30} explicitly from the dashboard wheel widget instead.
…nceScoreRingWithTooltips When autoSize is used, passing width/height is redundant since the SVG scales to its container. Default both to 220/200 (the value every caller uses) so autoSize callers don't need to pass them.
… is on
Instead of requiring callers to pass y={30}, compute it as
(height - size) / 2 when autoSize is true. Existing callers keep y=25.
DominikB2014
approved these changes
Mar 23, 2026
…ssue-with-performance-score-widget
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Fix the performance score (wheel) widget layout in dashboards and make the ring scale to fill its container.
We've had a complaint that the padding around the Score widget is awkward. It's true! I was tinkering with this, and thought, why not take this a step further and let the SVG scale with the widget? Kind of like a Big Number! I also fixed some padding stuff and got rid of the caption that said "last 7 days" altogether, none of our other widgets have that, might as well toss it.
Before:

After:

Refs DAIN-1383