-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
Fix: fixed overflowing glance buttons when sidebar is opened #5842
base: dev
Are you sure you want to change the base?
Conversation
@@ -283,9 +318,8 @@ | |||
return; | |||
} | |||
|
|||
if (!onTabClose || quikcCloseZen) { | |||
this.quickCloseGlance({ clearID: false }); | |||
} |
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.
Why this change?
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.
more streamlined approach to closing
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.
But have you tested this fully? The check is done for a reason...
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.
Ye like 15 times, tried to break it. you can try it locally urself
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.
lmk if you want to bring the checks back its no big deal , just thought this approach is more understandable
@@ -325,6 +359,10 @@ | |||
this._animating = false; | |||
this.closingGlance = false; | |||
|
|||
// Hide the buttons globally whenever we close | |||
this.hideSidebarButtons(); |
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 already closed from the quickCloseGlance method
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.
just a safety measure just to be sure buttons are hidden
Added informative comments for the glance component + refactored hideous stacked else ifs