Collapse the terminal dock from Escape anywhere in the panel.

Drop unused suggestion state and copy, and give the panel a reduced-motion-aware open transition.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-26 13:13:43 +02:00
parent 35a575dba9
commit 19d00da9bb
6 changed files with 70 additions and 14 deletions

View File

@@ -48,6 +48,10 @@
background: var(--color-surface-raised);
box-shadow: var(--shadow-raised);
color: var(--color-text);
animation: terminal-dock-in var(--duration-base) var(--ease-standard);
transition:
width var(--duration-base) var(--ease-standard),
max-height var(--duration-base) var(--ease-standard);
}
.terminal-dock.is-open {
@@ -130,9 +134,21 @@
}
}
@keyframes terminal-dock-in {
from {
opacity: 0;
transform: translateY(0.4rem);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
.terminal-dock,
.terminal-dock-panel {
animation: none;
transition: none;
}
}