From 9dde33aba785c64403f23b13990cf8dd385eee96 Mon Sep 17 00:00:00 2001 From: bizzkoot Date: Sun, 11 Jan 2026 20:09:13 +0800 Subject: [PATCH] style: add expand button positioning and styles --- .../ui/src/styles/messaging/prompt-input.css | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/packages/ui/src/styles/messaging/prompt-input.css b/packages/ui/src/styles/messaging/prompt-input.css index 8a7baaac..efca4f8d 100644 --- a/packages/ui/src/styles/messaging/prompt-input.css +++ b/packages/ui/src/styles/messaging/prompt-input.css @@ -27,6 +27,7 @@ flex: 1 1 auto; height: 100%; min-width: 0; + transition: height 0.25s ease; } .prompt-input-field { @@ -105,6 +106,40 @@ cursor: not-allowed; } +.prompt-expand-top { + position: absolute; + top: 0.3rem; + right: 3.5rem; + display: flex; + align-items: center; + justify-content: center; + z-index: 2; +} + +.prompt-expand-button { + @apply w-9 h-9 flex items-center justify-center rounded-md; + color: var(--text-muted); + background-color: rgba(15, 23, 42, 0.04); + transition: background-color 0.15s ease, color 0.15s ease; + padding: 0; +} + +.prompt-expand-button:hover:not(:disabled) { + background-color: var(--surface-secondary); + color: var(--text-primary); +} + +.prompt-expand-button:active:not(:disabled) { + background-color: var(--accent-primary); + color: var(--text-inverted); + transform: scale(0.95); +} + +.prompt-expand-button:disabled { + opacity: 0.4; + cursor: not-allowed; +} + .prompt-overlay-text { display: inline-flex; align-items: center;