Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/ui/src/components/message-nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@

[data-slot="message-nav-tooltip"] {
z-index: 1000;

&[data-expanded] {
animation: slideInLeft 0.15s ease-out;
}

&[data-closed] {
animation: slideOutLeft 0.1s ease-in forwards;
}
}

[data-slot="message-nav-tooltip-content"] {
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/src/components/message-part.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@

[data-component="reasoning-part"] {
width: 100%;
opacity: 0.5;
animation: fadeUpDim 0.5s ease-out forwards;

[data-component="markdown"] {
margin-top: 24px;
Expand Down Expand Up @@ -320,6 +320,7 @@
align-items: center;
gap: 8px;
color: var(--text-weak);
animation: slideInLeft 0.3s ease-out;

[data-slot="icon-svg"] {
flex-shrink: 0;
Expand Down
2 changes: 2 additions & 0 deletions packages/ui/src/components/session-turn.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
display: flex;
align-items: flex-start;
justify-content: flex-start;
animation: fadeUp 0.5s ease-out;

[data-slot="session-turn-content"] {
flex-grow: 1;
Expand Down Expand Up @@ -126,6 +127,7 @@
gap: 24px;
align-items: flex-start;
align-self: stretch;
animation: fadeUp 0.5s ease-out;
}

[data-slot="session-turn-summary-header"] {
Expand Down
43 changes: 43 additions & 0 deletions packages/ui/src/styles/animations.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,39 @@
}
}

@keyframes fadeUpDim {
from {
opacity: 0;
transform: translateY(5px);
}
to {
opacity: 0.5;
transform: translateY(0);
}
}

@keyframes slideInLeft {
from {
opacity: 0;
transform: translateX(-10px);
}
to {
opacity: 1;
transform: translateX(0);
}
}

@keyframes slideOutLeft {
from {
opacity: 1;
transform: translateX(0);
}
to {
opacity: 0;
transform: translateX(-10px);
}
}

.fade-up-text {
animation: fadeUp 0.4s ease-out forwards;
opacity: 0;
Expand Down Expand Up @@ -128,3 +161,13 @@
animation-delay: 3s;
}
}

@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}