-
Notifications
You must be signed in to change notification settings - Fork 254
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
Debugged Properties panel close Animation Bug #654
Conversation
@drfarrell @Kitenite here is the PR for that same, This has successfully debugged that issue and the text is now not coming out of the transition box. Please review it and let me know if any changes are required. |
This was for #651 . |
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.
@Kitenite Please check now, Scroll is working now, and the tailwind class is also in size.. |
@Kitenite Any updates sir? |
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 one question, seems like there are more overflow-hidden implemented in code than what was suggested in the description. Is this correct?
Also should we do the same thing in the LayersPanel?
@@ -104,7 +104,7 @@ const ManualTab = observer(() => { | |||
<AccordionTrigger> | |||
<h2 className="text-xs font-semibold">{groupKey}</h2> | |||
</AccordionTrigger> | |||
<AccordionContent> | |||
<AccordionContent className="overflow-auto max-h-[50vh]"> |
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.
Can you explain why this is necessary? Seems like we just need overflow-hidden
on the root panel div?
@@ -128,7 +128,7 @@ const ManualTab = observer(() => { | |||
return ( | |||
editorEngine.elements.selected.length > 0 && ( | |||
<Accordion | |||
className="px-4" | |||
className="px-4 overflow-hidden" |
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.
Same with this
<div className="h-[calc(100vh-7.75rem)] overflow-auto"> | ||
<TabsContent value={TabValue.STYLES}> | ||
<TabsContent value={TabValue.STYLES} className="min-w-0 max-w-full min-h-0 max-h-full"> |
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.
And these 2
Sorry I was working on a different PR. Left some comments but thanks for the quick turnaround! |
So I was not sure where the code was at first so was experimenting, So is it fine now ? |
@Kitenite Did it for the layers too. |
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.
Working well! Thanks for being very responsive on this
@Kitenite Can you please add the hacktoberfest-accepted label also, for it to get counted. |
Ofc! |
Fixing Overflow Issue in EditPanel Component
Problem
While opening or closing the
EditPanel
tab, the content inside was overflowing beyond the boundaries of the panel. This caused the UI to break during animations.Solution
We applied
overflow-hidden
to critical containers and added width/height constraints to prevent content from escaping during transitions. We also ensured smooth transitions with CSS adjustments.Changes Made
overflow-hidden
to the Main Wrapper: