From facb4155d4a0d343b6f0cbae93f112456f20875b Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sat, 11 Jan 2025 20:57:28 -0800 Subject: [PATCH] Fix morphdom leaving ghost elements behind --- css/main.css | 4 ++-- modules/html_generator.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/css/main.css b/css/main.css index 63681979..1a7efe70 100644 --- a/css/main.css +++ b/css/main.css @@ -1249,12 +1249,12 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* { transition: opacity 0.2s; } -.footer-button#copy-button { +.footer-button.footer-copy-button { bottom: -23px; left: 0; } -.footer-button#refresh-button { +.footer-button.footer-refresh-button { bottom: -23px; left: 25px; } diff --git a/modules/html_generator.py b/modules/html_generator.py index 3ddad51d..245c833c 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -297,8 +297,8 @@ def get_image_cache(path): copy_svg = '''''' refresh_svg = '''''' -copy_button = f'' -refresh_button = f'' +copy_button = f'' +refresh_button = f'' def generate_instruct_html(history): output = f'