-
Notifications
You must be signed in to change notification settings - Fork 497
fix: Alignment issues with 'unsaved changes' badge in Feature modal #6949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
5e866c8
8fadff4
00a7be3
04ccde7
ad6d196
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,7 +138,7 @@ const Tabs: React.FC<TabsProps> = ({ | |
| > | ||
| <div | ||
| ref={itemsContainerRef} | ||
| className={classNames('d-flex align-items-center flex-1', 'gap-2', { | ||
| className={classNames('justify-content-evenly','d-flex align-items-center flex-1', 'gap-2', { | ||
| 'opacity-0': isMeasuring, | ||
| })} | ||
| > | ||
|
|
@@ -148,7 +148,7 @@ const Tabs: React.FC<TabsProps> = ({ | |
| <TabButton | ||
| key={`button-${i}`} | ||
| isSelected={isSelected} | ||
| className={canGrow ? 'tab-nav-full' : ''} | ||
| className={''} | ||
|
||
| noFocus={noFocus} | ||
| onClick={(e: React.MouseEvent<HTMLButtonElement>) => | ||
| handleChange( | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,9 +64,7 @@ | |
| } | ||
|
|
||
| .tabs-nav { | ||
| .tab-nav-full { | ||
| flex: 1 !important; | ||
| } | ||
|
|
||
|
|
||
| position: relative; | ||
| display: flex; | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Global tab layout changed by
justify-content-evenlyadditionHigh Severity
Adding
justify-content-evenlyto the items container in theTabscomponent and removing thetab-nav-fullclass affects every tab instance across the app (EditPermissions, PermissionsTabs, DiffFeature, DiffSegment, etc.), not just the Feature modal tabs targeted by this fix. Previously tabs were packed at the start with optionalflex: 1growing; now they're evenly distributed across the full width regardless of context. As the reviewers noted, the root cause is.tab-nav-fulloverridingflex, and a scoped fix is needed rather than a global layout change.Additional Locations (1)
frontend/web/styles/components/_tabs.scss#L65-L68There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bugbot Autofix determined this is a false positive.
The current
Tabsimplementation does not addjustify-content-evenlyand still appliestab-nav-fullconditionally, so the reported global layout regression is not present.This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.