-
Notifications
You must be signed in to change notification settings - Fork 460
feat: right side panel favorites, no selection state, and more... #7812
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
base: main
Are you sure you want to change the base?
Changes from all commits
069e2fd
296a9e1
0d71d53
4bdb441
3013780
9d83cd3
65a57d1
1fa6e13
8293de2
a032ac4
b224e98
b4d86d5
ea8c41c
ab06fcd
87ed0c1
bd48922
4f95f0d
cbe4d59
8597e06
5b9a279
7506e65
c8a8256
99095cc
7e501f4
c5563d4
fd16859
9650e85
ebb3cc3
5f066b4
86dac8c
8f0ed7d
d6b6ae3
59b561b
193fa0a
acda492
486cad6
81200d5
7310683
e01e5e1
308b489
e48894c
19e0a33
8134e12
2637255
37f1e94
8a0217c
932ca80
0135805
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1 +1,21 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @import '@comfyorg/design-system/css/style.css'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @import '@comfyorg/design-system/css/style.css'; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| /* List transition animations */ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .list-scale-move, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .list-scale-enter-active, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .list-scale-leave-active { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| transition-property: opacity, transform; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| transition-duration: 150ms; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| transition-timing-function: ease; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .list-scale-enter-from, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .list-scale-leave-to { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| opacity: 0; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| transform: scale(70%); | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| .list-scale-leave-active { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| position: absolute; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| width: 100%; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+3
to
+21
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial Add Consider wrapping the transition animations in a media query to respect user motion preferences, or disable them for users who have enabled reduced motion in their system settings. 🔎 Proposed accessibility enhancement /* List transition animations */
+@media (prefers-reduced-motion: no-preference) {
+ .list-scale-move,
+ .list-scale-enter-active,
+ .list-scale-leave-active {
+ transition-property: opacity, transform;
+ transition-duration: 150ms;
+ transition-timing-function: ease;
+ }
+
+ .list-scale-enter-from,
+ .list-scale-leave-to {
+ opacity: 0;
+ transform: scale(70%);
+ }
+
+ .list-scale-leave-active {
+ position: absolute;
+ width: 100%;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .list-scale-move,
+ .list-scale-enter-active,
+ .list-scale-leave-active {
+ transition: none;
+ }
+
+ .list-scale-leave-active {
+ position: absolute;
+ width: 100%;
+ }
+}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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.
🧹 Nitpick | 🔵 Trivial
Consider using CSS
transitionshorthand.The individual transition properties can be consolidated into a single shorthand declaration for more concise code.
🔎 Proposed refactor using shorthand
.list-scale-move, .list-scale-enter-active, .list-scale-leave-active { - transition-property: opacity, transform; - transition-duration: 150ms; - transition-timing-function: ease; + transition: opacity 150ms ease, transform 150ms ease; }📝 Committable suggestion
🤖 Prompt for AI Agents