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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user