-
Notifications
You must be signed in to change notification settings - Fork 121
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
PR 2589 merged with main #2601
base: main
Are you sure you want to change the base?
PR 2589 merged with main #2601
Conversation
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.
Thank you, @yangchristina!
This PR does not appear to have the same 1. Disappearing thoughts
issue as #2589 👍
However, I am not seeing a fade-in animation when creating a new thought. To be sure it wasn't just too fast for me to notice, I also tried changing the animation speed to 'slow'
.
Screen.Recording.2024-11-18.at.11.44.35.PM.mov
I don't believe this is being enforced (yet), but just want to also note that rebasing is generally preferred instead of merge commits.
@@ -434,14 +441,20 @@ const TreeNode = ({ | |||
// Increasing margin-right of thought for filling gaps and moving the thought to the left by adding negative margin from right. | |||
const marginRight = isTableCol1 ? xCol2 - (width || 0) - x - (bulletWidth || 0) : 0 | |||
|
|||
// Speed up the tree-node's transition by 50% on New (Sub)Thought only. | |||
const isNewThought = value === '' |
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.
@raineorshine - Can you please clarify what is intended in this part of #1790? I believe the current functionality is incorrect, but it isn't obvious to me what the desired animations/durations are.
Speed up the tree-node's transition (normally layoutNodeAnimationDuration) by 50% on New (Sub)Thought only.
This logic currently affects the animation duration when indenting to convert an empty thought into a subthought. It does not affect the animation when indenting a non-empty thought or when using the newSubthought
action. Here is a demo of the three, with layoutNodeAnimationDuration
increased for a more noticeable difference:
Screen.Recording.2024-11-18.at.11.35.22.PM.mov
@raineorshine @trevinhofmann The fade-in animation works if the |
I'm sorry for the confusion, but it was actually #2581 that needed help with the merge, not #2589. I mentioned this in #2581, but I was not specific in my personal communication to you @yangchristina on Discord, so my apologies. @zukilover made some progress on merging #2581, so we might not need this. I will mark this as draft for now and then we will merge the PR's one at a time, in order, until we get the desired result. Thanks for your patience. |
@raineorshine Sorry about this, I should have checked with you first. It's good it's been resolved now though! |
#2589 merged with main
Cannot put CSSTransition inside wrapper component, must be in
map
Changes:
left {durations.${layoutDuration}} ease-out,top {durations.${layoutDuration}} ease-out
, with(PandaCSS cannot statically extract
{durations.${layoutDuration}}
)