diff --git a/app/components/chat.module.scss b/app/components/chat.module.scss index 73542fc67..b5fd4dffd 100644 --- a/app/components/chat.module.scss +++ b/app/components/chat.module.scss @@ -75,6 +75,14 @@ pointer-events: none; } + &.listening { + width: var(--full-width); + .text { + opacity: 1; + transform: translate(0); + } + } + &:hover { --delay: 0.5s; width: var(--full-width); diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 3ce9c993e..c9e302e25 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -370,6 +370,7 @@ export function ChatAction(props: { text: string; icon: JSX.Element; onClick: () => void; + isListening: boolean; }) { const iconRef = useRef(null); const textRef = useRef(null); @@ -391,7 +392,9 @@ export function ChatAction(props: { return (
{ props.onClick(); setTimeout(updateWidth, 1); @@ -838,6 +841,7 @@ export function ChatActions(props: { } text={isListening ? Locale.Chat.StopSpeak : Locale.Chat.StartSpeak} icon={isListening ? : } + isListening={isListening} /> )}