From a25a1fc8d031951ffe241c12ad8396ddd24d7289 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Thu, 12 Jun 2025 22:01:02 -0700 Subject: [PATCH] Disable message action icons during streaming for better performance --- css/main.css | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/css/main.css b/css/main.css index a22fdd95..6d02582e 100644 --- a/css/main.css +++ b/css/main.css @@ -1289,6 +1289,20 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* { opacity: 1; } +/* Disable message action hover effects during generation */ +._generating .message:hover .message-actions, +._generating .user-message:hover .message-actions, +._generating .assistant-message:hover .message-actions { + opacity: 0 !important; +} + +/* Disable message action hover effects during scrolling */ +.scrolling .message:hover .message-actions, +.scrolling .user-message:hover .message-actions, +.scrolling .assistant-message:hover .message-actions { + opacity: 0 !important; +} + .footer-button svg { stroke: rgb(156 163 175); transition: stroke 0.2s; @@ -1624,8 +1638,3 @@ button:focus { justify-content: center; display: none; } - -/* Disable hover effects while scrolling */ -.chat-parent.scrolling * { - pointer-events: none !important; -}