-
Notifications
You must be signed in to change notification settings - Fork 157
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: handle sidebar resizing #12045
fix: handle sidebar resizing #12045
Conversation
const backgroundContentEl = computed(() => { | ||
return unref(appSideBar)?.parentElement?.querySelector('div') as HTMLElement | ||
}) | ||
|
||
const onResize = () => { |
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.
maybe we can think of debouncing the function.
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.
That might cause again "laggy" reactivity. Resize does not happen that often so I think it is fine not to have it debounced.
73cbac5
to
19aadcb
Compare
Right 🤦 fixed by applying the adjusted width only when the sidebar is open. |
Fixed various issues with sidebar resizing. Close button is no longer pushed away, resize event is added, and correct breakpoint is used.
19aadcb
to
06e7b80
Compare
|
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.
👍
Description
Fixed various issues with sidebar resizing. Close button is no longer pushed away, resize event is added, and correct breakpoint is used.
Related Issue
Motivation and Context
Resilient layout 💪
How Has This Been Tested?
Screenshots (if appropriate):
Zaznam.obrazovky.2024-12-18.v.10.58.06.mov
Types of changes
Open tasks: