-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
feat(issue-views): Change add view button to just + icon near starred views header' #87360
base: master
Are you sure you want to change the base?
Conversation
height: 14px !important; | ||
margin: 0 !important; |
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.
Idk why but there are top level sentry.css styles that are forcing margin and height properties on the loadingindicator.mini class.
@@ -149,12 +151,13 @@ export function IssueViewNavItemContent({ | |||
dragListener={false} | |||
dragControls={controls} | |||
style={{ | |||
...(isDragging | |||
...(isDragging || scrollPosition === 0 |
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.
This kinda fixes that really annoying issue where views wouldn't animate in and out as a result of the originY styles. We only need to apply those styles if the user has scrolled down on the page, since that's what triggers the framer motion bug.
position: relative; | ||
background-color: ${p => p.theme.translucentSurface200}; | ||
background-color: ${p => (p.grabbing ? p.theme.translucentSurface200 : 'transparent')}; |
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.
<SecondaryNav.Section | ||
title={ | ||
<TitleWrapper> | ||
{t('Starred Views')} | ||
<IssueViewAddViewButton baseUrl={baseUrl} /> | ||
</TitleWrapper> | ||
} | ||
> |
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.
This is moved in from the navigation.tsx file
Moves the Add View Button from below the views to the right of the "Starred Views" header. Adds a tooltip that says "Add View"
Before:
After:
Includes a couple of annotated drive by changes that aren't super related