fix: remove theme selector button from minimal chat UI

- Non-logged users no longer see the theme toggle (⚙/🌙/☀️) button
- Theme still auto-detects based on system preference (light/dark)
- Logged-in users have a separate theme menu with preview in the suite
This commit is contained in:
Rodrigo Rodriguez 2026-02-18 20:31:50 +00:00
parent a8bff4e1a7
commit e5796fa64c
2 changed files with 1745 additions and 1669 deletions

View file

@ -289,7 +289,7 @@ pub async fn serve_minimal() -> impl IntoResponse {
};
match html_res {
Ok(html) => (StatusCode::OK, [("content-type", "text/html")], Html(html)),
Ok(html) => (StatusCode::OK, [("content-type", "text/html; charset=utf-8")], Html(html)),
Err(e) => {
error!("Failed to load minimal UI: {e}");
(
@ -530,7 +530,7 @@ pub async fn serve_suite(bot_name: Option<String>) -> impl IntoResponse {
html = remove_section(&html, "settings");
}
(StatusCode::OK, [("content-type", "text/html")], Html(html))
(StatusCode::OK, [("content-type", "text/html; charset=utf-8")], Html(html))
}
Err(e) => {
error!("Failed to load suite UI: {e}");

File diff suppressed because it is too large Load diff