From 22892991f68154fa4f835c5c7105436f76adc636 Mon Sep 17 00:00:00 2001 From: Sudo-JHare Date: Sat, 19 Apr 2025 07:36:51 +1000 Subject: [PATCH] UI fixes --- templates/_fsh_output.html | 2 +- templates/base.html | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/_fsh_output.html b/templates/_fsh_output.html index a0072c1..a3927fe 100644 --- a/templates/_fsh_output.html +++ b/templates/_fsh_output.html @@ -37,7 +37,7 @@ {% if fsh_output %}
Conversion successful!

FSH Output

-
{{ fsh_output }}
+
{{ fsh_output }}
Download FSH {% if comparison_report %}

Fishing Trip Comparison Report

diff --git a/templates/base.html b/templates/base.html index c490a1e..25b545b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -799,6 +799,10 @@ html[data-theme="dark"] .structure-tree-root .list-group-item-warning { sunIcon.classList.remove('d-none'); moonIcon.classList.add('d-none'); } + if (typeof loadLottieAnimation === 'function') { + const newTheme = toggle.checked ? 'dark' : 'light'; + loadLottieAnimation(newTheme); + } // Set cookie to persist theme document.cookie = `theme=${toggle.checked ? 'dark' : 'light'}; path=/; max-age=31536000`; }