feat(session-ui,app): animate composer docks, queue pullout, and attachment chips

This commit is contained in:
Kit Langton 2026-10-17 23:24:32 -07:00
parent 750f8d50a5
commit cc629122fc
5 changed files with 91 additions and 1 deletions

View file

@ -16,6 +16,28 @@
}
}
[data-slot="composer-attachments-scroll"] > div {
animation: composer-attachment-chip-in var(--motion-duration-fast, 160ms)
var(--motion-spring-snappy, cubic-bezier(0.22, 1, 0.36, 1));
}
@keyframes composer-attachment-chip-in {
from {
opacity: 0;
transform: translateY(3px) scale(0.95);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
@media (prefers-reduced-motion: reduce) {
[data-slot="composer-attachments-scroll"] > div {
animation: none;
}
}
[data-component="upload-row"] {
display: flex;
flex-direction: column;

View file

@ -48,6 +48,16 @@
var(--motion-spring-snappy, cubic-bezier(0.22, 1, 0.36, 1));
}
[data-component="session-queue-panel"] {
animation: session-queue-panel-in var(--motion-duration-normal, 220ms)
var(--motion-spring-snappy, cubic-bezier(0.22, 1, 0.36, 1));
}
[data-component="session-queue-row"] {
animation: session-queue-row-in var(--motion-duration-fast, 160ms)
var(--motion-spring-snappy, cubic-bezier(0.22, 1, 0.36, 1));
}
@keyframes composer-suggestions-in {
from {
opacity: 0;
@ -59,8 +69,32 @@
}
}
@keyframes session-queue-panel-in {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes session-queue-row-in {
from {
opacity: 0;
transform: translateY(4px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
[data-component="composer-suggestions"] {
[data-component="composer-suggestions"],
[data-component="session-queue-panel"],
[data-component="session-queue-row"] {
animation: none;
}
}

View file

@ -2,6 +2,7 @@
width: 100%;
border: 0.5px solid var(--v2-border-border-base);
border-radius: 12px;
animation: dock-prompt-in var(--motion-duration-normal, 220ms) var(--motion-spring-snappy, cubic-bezier(0.22, 1, 0.36, 1));
.websearch-body {
box-shadow: var(--v2-elevation-raised);

View file

@ -1072,6 +1072,27 @@
scroll-margin-top: var(--sticky-accordion-top, 0px);
}
[data-component="dock-prompt"] {
animation: dock-prompt-in var(--motion-duration-normal, 220ms) var(--motion-spring-snappy, cubic-bezier(0.22, 1, 0.36, 1));
}
@keyframes dock-prompt-in {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
[data-component="dock-prompt"] {
animation: none;
}
}
[data-component="dock-prompt"][data-kind="permission"] {
position: relative;
display: flex;

View file

@ -219,13 +219,20 @@
border-radius: 4px;
background: linear-gradient(180deg, var(--v2-alpha-light-6), var(--v2-alpha-light-0)), var(--v2-background-bg-base);
box-shadow: inset 0 0 0 0.5px var(--v2-border-border-strong);
transition:
background-color var(--motion-duration-micro, 120ms) ease,
box-shadow var(--motion-duration-micro, 120ms) ease;
[data-slot="icon-svg"] {
inline-size: 16px;
block-size: 16px;
flex: 0 0 16px;
opacity: 0;
transform: scale(0.6);
color: var(--v2-icon-icon-contrast);
transition:
opacity var(--motion-duration-micro, 120ms) var(--motion-spring-snappy, cubic-bezier(0.22, 1, 0.36, 1)),
transform var(--motion-duration-fast, 160ms) var(--motion-spring-snappy, cubic-bezier(0.22, 1, 0.36, 1));
}
&[data-type="radio"] {
@ -240,6 +247,10 @@
background-color: var(--v2-grey-300);
box-shadow: var(--v2-elevation-elements);
opacity: 0;
transform: scale(0.5);
transition:
opacity var(--motion-duration-micro, 120ms) var(--motion-spring-snappy, cubic-bezier(0.22, 1, 0.36, 1)),
transform var(--motion-duration-fast, 160ms) var(--motion-spring-snappy, cubic-bezier(0.22, 1, 0.36, 1));
}
&[data-picked="true"] {
@ -249,6 +260,7 @@
[data-slot="icon-svg"],
[data-slot="question-option-radio-dot"] {
opacity: 1;
transform: scale(1);
}
&[data-type="radio"] {