Skip to content
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

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Raiden0456
Copy link

Added informative comments for the glance component + refactored hideous stacked else ifs

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. Bug labels Feb 27, 2025
@@ -283,9 +318,8 @@
return;
}

if (!onTabClose || quikcCloseZen) {
this.quickCloseGlance({ clearID: false });
}
Copy link
Member

Choose a reason for hiding this comment

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

Why this change?

Copy link
Author

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

Copy link
Member

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...

Copy link
Author

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

Copy link
Author

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();
Copy link
Member

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

Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants