-
Notifications
You must be signed in to change notification settings - Fork 309
fix(tiny-split):The panel split animation is not displayed properly #3452
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
Conversation
WalkthroughThe transition effects on two selectors in the split component's theme were removed by deleting Changes
Poem
Note ⚡️ AI Code Reviews for VS Code, Cursor, WindsurfCodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
💤 Files with no reviewable changes (2)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Walkthrough该PR修复了面板分割动画显示异常的问题。通过移除CSS中的过渡效果,解决了动画卡顿的问题,确保动画流畅显示。 Changes
|
packages/theme/src/split/index.less
Outdated
@@ -78,7 +78,7 @@ | |||
position: absolute; | |||
transform: translate(-50%, -50%); | |||
z-index: 10; | |||
transition: all 0.1s; | |||
transition: none; |
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.
Removing the transition property might fix the animation stutter, but it could also lead to abrupt changes in the UI. Consider testing thoroughly to ensure this change doesn't negatively impact the user experience.
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.
如果不需要动画是不是直接删除这一行就可以了,还有看下多端或者saas那边是怎么处理的,最好保持统一
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.
已全部修改
packages/theme/src/split/index.less
Outdated
@@ -276,7 +276,7 @@ | |||
display: flex; | |||
justify-content: center; | |||
align-items: center; | |||
transition: all 0.1s; | |||
transition: none; |
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.
Similar to the previous comment, removing the transition here might fix the stutter but could lead to abrupt UI changes. Ensure that this change does not degrade the user experience.
WalkthroughThis PR fixed the issue of abnormal display of panel segmentation animation. By removing the transition effect in CSS, the problem of animation lag is solved to ensure smooth animation display. Changes
|
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.
Actionable comments posted: 1
🧹 Nitpick comments (2)
packages/theme/src/split/index.less (2)
81-81
: Limit the disabled transitions to only required properties and states.Disabling all transitions on
.split-trigger-con
can unintentionally remove smooth effects for other interactions (e.g., hover and size changes). Consider restricting the disable to only the properties that cause the stutter (e.g., transform/position) or scoping it under a drag-specific class:- transition: none; + transition-property: transform, top, left; + transition-duration: 0s;
300-300
: Remove redundant transition override on drag state.Since
.split-trigger-con
already hastransition: none
, redeclaring it in the.split-trigger-con-drag
block is redundant. For better maintainability, you can merge these selectors:- &-trigger-con-drag { - transition: none; - } + &-trigger-con, + &-trigger-con-drag { + transition: none; + }
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/theme/src/split/index.less
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: PR E2E Test (pnpm test:e2e3)
a5e4ae8
to
170e9a5
Compare
PR
修复面板分割动画卡顿显示异常
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: #3174
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit