From de74f8ded075dba9db5a9423bd8ab8c1032d7be6 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 7 Aug 2025 12:25:06 -0500 Subject: [PATCH] Simplify thinking state --- app/assets/stylesheets/conversation.css | 17 +++++------------ .../show/_thinking_indicator.html.erb | 8 ++------ 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/app/assets/stylesheets/conversation.css b/app/assets/stylesheets/conversation.css index fe7d8e6d7..cec3cf267 100644 --- a/app/assets/stylesheets/conversation.css +++ b/app/assets/stylesheets/conversation.css @@ -35,6 +35,11 @@ .input--textarea { --input-padding: 0.5em !important; } + + .conversation:has(.conversation__thinking-indicator--thinking) & { + animation: pulse 1.5s infinite; + pointer-events: none; + } } .conversation__message { @@ -85,18 +90,6 @@ } } - .conversation__thinking-indicator { - padding: var(--block-space); - } - - .conversation__thinking-indicator--ready { - display: none; - } - - .conversation__thinking-indicator--thinking { - display: block; - } - .conversation__transcript { display: flex; flex-direction: column; diff --git a/app/views/conversations/show/_thinking_indicator.html.erb b/app/views/conversations/show/_thinking_indicator.html.erb index 0cd2c9c78..f08f48f9b 100644 --- a/app/views/conversations/show/_thinking_indicator.html.erb +++ b/app/views/conversations/show/_thinking_indicator.html.erb @@ -1,6 +1,2 @@ -<%= tag.div( - id: dom_id(conversation, :thinking_indicator), - class: "conversation__thinking-indicator conversation__thinking-indicator--#{conversation.state}" -) do %> - Thinking... -<% end %> +<%= tag.div id: dom_id(conversation, :thinking_indicator), + class: "conversation__thinking-indicator conversation__thinking-indicator--#{conversation.state}" %>