-
Notifications
You must be signed in to change notification settings - Fork 729
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: Floating panel and dialog bugs #4708
base: main
Are you sure you want to change the base?
Conversation
@@ -92,7 +92,7 @@ export const ValueEditorDialog = ({ | |||
title="CSS Value" | |||
placement="bottom" | |||
height={200} | |||
width={Number(rawTheme.sizes.sidebarWidth)} | |||
width={parseFloat(rawTheme.sizes.sidebarWidth)} |
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.
Let's take both Number.parseFloat
onResizeStart?: (entries: Array<ResizeObserverEntry>) => void; | ||
onResize?: (entries: Array<ResizeObserverEntry>) => void; | ||
onResizeEnd?: (entries: Array<ResizeObserverEntry>) => void; |
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.
where entries are used?
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.
I was in the middle of refactoring and used them, then removed the usage, thought its still useful potentially since the utility is generic.
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.
1. Bindings open in middle
- Select an instance on the canvas
- Next click, open a binding
- See it in the middle of the page
Bindings open in unpredictable spots often. Will need to test this a lot
bindingrel.mp4
2. Style panel scroll with open dialog
- Open complex value
- Scroll style panel
- Click or drag dialog
- See jump
scrollst.mp4
Let me review again once these are fixed. These are super error prone and unpredictable IMO and we need to be careful with them. From a user perspective, they've caused my harm than help as of now.
@johnsicili seems like deployment didn't go through, you tested some buggy version |
second issue is valid |
Description
Steps for reproduction
Code Review
Before requesting a review
Before merging
.env
file