Skip to content

fix: Fix "unsaved changes" badge positioning on Edit Feature modal tabs#6969

Open
JiwaniZakir wants to merge 2 commits intoFlagsmith:mainfrom
JiwaniZakir:fix/issue-6935
Open

fix: Fix "unsaved changes" badge positioning on Edit Feature modal tabs#6969
JiwaniZakir wants to merge 2 commits intoFlagsmith:mainfrom
JiwaniZakir:fix/issue-6935

Conversation

@JiwaniZakir
Copy link

Fixes #6935

The "unsaved changes" badge on the Segment Overrides tab in the Edit Feature modal was rendered out of vertical alignment. The Row wrapper in create-feature/index.js only applied justify-content-center, leaving the badge offset vertically relative to the tab label text. Adding align-items-center to that Row's className corrects the vertical alignment. Minor whitespace inconsistencies in _tabs.scss are cleaned up alongside the fix.

@JiwaniZakir JiwaniZakir requested a review from a team as a code owner March 17, 2026 01:24
@JiwaniZakir JiwaniZakir requested review from kyle-ssg and removed request for a team March 17, 2026 01:24
@claude
Copy link

claude bot commented Mar 17, 2026

⚠️ Code review skipped — your organization's overage spend limit has been reached.

Code review is billed via overage credits. To resume reviews, an organization admin can raise the monthly limit in Settings → Usage.

Once credits are available, reopen this pull request to trigger a review.

@vercel
Copy link

vercel bot commented Mar 17, 2026

@JiwaniZakir is attempting to deploy a commit to the Flagsmith Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the front-end Issue related to the React Front End Dashboard label Mar 17, 2026
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

tabLabel={
<Row
className={`justify-content-center ${
className={`justify-content-center align-items-center ${
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alignment fix applied to only one of three tabs

Medium Severity

The align-items-center fix is only applied to the Segment Overrides tab Row, but the Value tab (line 850) and Settings tab (line 1679) use the identical Row + unsaved-changes badge pattern with only justify-content-center. Before this change, all three badge tabs were equally misaligned; now only Segment Overrides is corrected, creating a visible inconsistency between tabs with unsaved changes indicators.

Fix in Cursor Fix in Web

@talissoncosta
Copy link
Contributor

Hey @JiwaniZakir , thanks for picking this up! 🙏

Could you add before/after screenshots to the PR description? It'll help us validate the fix visually and speed up the review.

Thanks again for the contribution!

@talissoncosta talissoncosta requested review from talissoncosta and removed request for kyle-ssg March 17, 2026 13:20
@JiwaniZakir
Copy link
Author

Sure! I'll add before/after screenshots to the PR description shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix "unsaved changes" badge positioning on Edit Feature modal tabs

2 participants