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:
parent
a8bff4e1a7
commit
e5796fa64c
2 changed files with 1745 additions and 1669 deletions
|
|
@ -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}");
|
||||
|
|
|
|||
|
|
@ -1,13 +1,14 @@
|
|||
<!doctype html>
|
||||
<html lang="pt-br">
|
||||
<head>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>General Bots</title>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
<script>
|
||||
// BotServer URL - configurable via window.BOTSERVER_URL or defaults to same origin port 9000
|
||||
const BOTSERVER_URL =
|
||||
window.BOTSERVER_URL || "https://localhost:9000";
|
||||
window.BOTSERVER_URL || "http://localhost:9000";
|
||||
const BOTSERVER_WS_URL = BOTSERVER_URL.replace(
|
||||
"https://",
|
||||
"wss://",
|
||||
|
|
@ -37,17 +38,14 @@
|
|||
--glass: rgba(0, 0, 0, 0.02);
|
||||
--shadow: rgba(0, 0, 0, 0.05);
|
||||
--logo-url: url("https://pragmatismo.com.br/icons/general-bots.svg");
|
||||
--gradient-1: linear-gradient(
|
||||
135deg,
|
||||
--gradient-1: linear-gradient(135deg,
|
||||
rgba(0, 102, 255, 0.05) 0%,
|
||||
rgba(0, 102, 255, 0) 100%
|
||||
);
|
||||
--gradient-2: linear-gradient(
|
||||
45deg,
|
||||
rgba(0, 102, 255, 0) 100%);
|
||||
--gradient-2: linear-gradient(45deg,
|
||||
rgba(0, 0, 0, 0.02) 0%,
|
||||
rgba(0, 0, 0, 0) 100%
|
||||
);
|
||||
rgba(0, 0, 0, 0) 100%);
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
--bg: #1a1a1a;
|
||||
--fg: #ffffff;
|
||||
|
|
@ -55,22 +53,20 @@
|
|||
--accent: #ffffff;
|
||||
--glass: rgba(255, 255, 255, 0.05);
|
||||
--shadow: rgba(0, 0, 0, 0.5);
|
||||
--gradient-1: linear-gradient(
|
||||
135deg,
|
||||
--gradient-1: linear-gradient(135deg,
|
||||
rgba(255, 255, 255, 0.08) 0%,
|
||||
rgba(255, 255, 255, 0) 100%
|
||||
);
|
||||
--gradient-2: linear-gradient(
|
||||
45deg,
|
||||
rgba(255, 255, 255, 0) 100%);
|
||||
--gradient-2: linear-gradient(45deg,
|
||||
rgba(255, 255, 255, 0.03) 0%,
|
||||
rgba(255, 255, 255, 0) 100%
|
||||
);
|
||||
rgba(255, 255, 255, 0) 100%);
|
||||
}
|
||||
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: "Inter", sans-serif;
|
||||
background: var(--bg);
|
||||
|
|
@ -84,6 +80,7 @@
|
|||
height: 100vh;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body::before {
|
||||
content: "";
|
||||
position: fixed;
|
||||
|
|
@ -92,6 +89,7 @@
|
|||
pointer-events: none;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.float-menu {
|
||||
position: fixed;
|
||||
left: 20px;
|
||||
|
|
@ -101,6 +99,7 @@
|
|||
gap: 8px;
|
||||
z-index: 1000;
|
||||
}
|
||||
|
||||
.float-logo {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
|
|
@ -112,11 +111,13 @@
|
|||
border: 1px solid var(--border);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
[data-theme="dark"] .float-logo {
|
||||
}
|
||||
|
||||
[data-theme="dark"] .float-logo {}
|
||||
|
||||
.float-logo:hover {
|
||||
transform: scale(1.1) rotate(5deg);
|
||||
}
|
||||
|
||||
.menu-button {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
|
|
@ -132,11 +133,13 @@
|
|||
color: var(--fg);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.menu-button:hover {
|
||||
transform: scale(1.1) rotate(-5deg);
|
||||
background: var(--fg);
|
||||
color: var(--bg);
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
position: fixed;
|
||||
left: -320px;
|
||||
|
|
@ -152,9 +155,11 @@
|
|||
backdrop-filter: blur(20px);
|
||||
box-shadow: 4px 0 20px var(--shadow);
|
||||
}
|
||||
|
||||
.sidebar.open {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.sidebar-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
@ -162,18 +167,21 @@
|
|||
margin-bottom: 30px;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.sidebar-logo {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background: var(--logo-url) center/contain no-repeat;
|
||||
filter: var(--logo-filter, none);
|
||||
}
|
||||
[data-theme="dark"] .sidebar-logo {
|
||||
}
|
||||
|
||||
[data-theme="dark"] .sidebar-logo {}
|
||||
|
||||
.sidebar-title {
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.sidebar-button {
|
||||
width: 100%;
|
||||
padding: 12px 16px;
|
||||
|
|
@ -188,14 +196,17 @@
|
|||
color: var(--fg);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.sidebar-button:hover {
|
||||
background: var(--fg);
|
||||
color: var(--bg);
|
||||
transform: translateX(4px) scale(1.02);
|
||||
}
|
||||
|
||||
.history-section {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.history-title {
|
||||
font-size: 12px;
|
||||
opacity: 0.5;
|
||||
|
|
@ -203,6 +214,7 @@
|
|||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.history-item {
|
||||
padding: 10px 14px;
|
||||
margin-bottom: 6px;
|
||||
|
|
@ -212,11 +224,13 @@
|
|||
font-size: 13px;
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.history-item:hover {
|
||||
background: var(--fg);
|
||||
color: var(--bg);
|
||||
transform: translateX(4px) scale(1.02);
|
||||
}
|
||||
|
||||
#messages {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
|
|
@ -227,16 +241,19 @@
|
|||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.message-container {
|
||||
margin-bottom: 24px;
|
||||
opacity: 0;
|
||||
transform: translateY(10px);
|
||||
}
|
||||
|
||||
.user-message {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.user-message-content {
|
||||
background: var(--fg);
|
||||
color: var(--bg);
|
||||
|
|
@ -249,6 +266,7 @@
|
|||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.user-message-content::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
|
|
@ -257,11 +275,13 @@
|
|||
opacity: 0.3;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.assistant-message {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.assistant-avatar {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
|
|
@ -271,8 +291,9 @@
|
|||
margin-top: 2px;
|
||||
filter: var(--logo-filter, none);
|
||||
}
|
||||
[data-theme="dark"] .assistant-avatar {
|
||||
}
|
||||
|
||||
[data-theme="dark"] .assistant-avatar {}
|
||||
|
||||
.assistant-message-content {
|
||||
flex: 1;
|
||||
font-size: 14px;
|
||||
|
|
@ -285,6 +306,7 @@
|
|||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.assistant-message-content::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
|
|
@ -293,6 +315,7 @@
|
|||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.thinking-indicator {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
|
|
@ -300,10 +323,12 @@
|
|||
font-size: 13px;
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.typing-dots {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.typing-dot {
|
||||
width: 4px;
|
||||
height: 4px;
|
||||
|
|
@ -311,24 +336,30 @@
|
|||
border-radius: 50%;
|
||||
animation: bounce 1.4s infinite;
|
||||
}
|
||||
|
||||
.typing-dot:nth-child(1) {
|
||||
animation-delay: -0.32s;
|
||||
}
|
||||
|
||||
.typing-dot:nth-child(2) {
|
||||
animation-delay: -0.16s;
|
||||
}
|
||||
|
||||
@keyframes bounce {
|
||||
|
||||
0%,
|
||||
80%,
|
||||
100% {
|
||||
transform: scale(0);
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
40% {
|
||||
transform: scale(1);
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
footer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
|
|
@ -341,6 +372,7 @@
|
|||
transition: all 0.3s;
|
||||
backdrop-filter: blur(20px);
|
||||
}
|
||||
|
||||
.suggestions-container {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
|
@ -350,6 +382,7 @@
|
|||
max-width: 680px;
|
||||
margin: 0 auto 8px;
|
||||
}
|
||||
|
||||
.suggestion-button {
|
||||
padding: 6px 12px;
|
||||
border-radius: 12px;
|
||||
|
|
@ -361,11 +394,13 @@
|
|||
border: 1px solid var(--border);
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
.suggestion-button:hover {
|
||||
background: var(--fg);
|
||||
color: var(--bg);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
.input-container {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
|
|
@ -373,6 +408,7 @@
|
|||
margin: 0 auto;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#messageInput {
|
||||
flex: 1;
|
||||
border-radius: 20px;
|
||||
|
|
@ -386,13 +422,16 @@
|
|||
color: var(--fg);
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
#messageInput:focus {
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
|
||||
}
|
||||
|
||||
#messageInput::placeholder {
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
#sendBtn,
|
||||
#voiceBtn {
|
||||
width: 36px;
|
||||
|
|
@ -409,28 +448,35 @@
|
|||
font-size: 16px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
#sendBtn:hover,
|
||||
#voiceBtn:hover {
|
||||
transform: scale(1.08) rotate(5deg);
|
||||
}
|
||||
|
||||
#sendBtn:active,
|
||||
#voiceBtn:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
|
||||
#voiceBtn.recording {
|
||||
animation: pulse 1.5s infinite;
|
||||
}
|
||||
|
||||
@keyframes pulse {
|
||||
|
||||
0%,
|
||||
100% {
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
|
||||
50% {
|
||||
opacity: 0.6;
|
||||
transform: scale(1.1);
|
||||
}
|
||||
}
|
||||
|
||||
.flash-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
|
|
@ -439,6 +485,7 @@
|
|||
pointer-events: none;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.scroll-to-bottom {
|
||||
position: fixed;
|
||||
bottom: 80px;
|
||||
|
|
@ -457,12 +504,15 @@
|
|||
transition: all 0.3s;
|
||||
z-index: 90;
|
||||
}
|
||||
|
||||
.scroll-to-bottom.visible {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.scroll-to-bottom:hover {
|
||||
transform: scale(1.1) rotate(180deg);
|
||||
}
|
||||
|
||||
.warning-message {
|
||||
border-radius: 12px;
|
||||
padding: 12px 16px;
|
||||
|
|
@ -472,6 +522,7 @@
|
|||
border: 1px solid var(--border);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.continue-button {
|
||||
display: inline-block;
|
||||
border-radius: 10px;
|
||||
|
|
@ -484,11 +535,13 @@
|
|||
background: var(--glass);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.continue-button:hover {
|
||||
background: var(--fg);
|
||||
color: var(--bg);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.context-indicator {
|
||||
position: fixed;
|
||||
bottom: 130px;
|
||||
|
|
@ -504,9 +557,11 @@
|
|||
display: none;
|
||||
backdrop-filter: blur(10px);
|
||||
}
|
||||
|
||||
.context-indicator.visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.context-progress {
|
||||
height: 3px;
|
||||
background: var(--glass);
|
||||
|
|
@ -514,12 +569,14 @@
|
|||
margin-top: 6px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.context-progress-bar {
|
||||
height: 100%;
|
||||
background: var(--accent);
|
||||
border-radius: 2px;
|
||||
transition: width 0.3s;
|
||||
}
|
||||
|
||||
.connection-status {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
|
|
@ -530,42 +587,52 @@
|
|||
z-index: 1000;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.connection-status.connecting {
|
||||
background: var(--fg);
|
||||
opacity: 0.3;
|
||||
animation: ping 1.5s infinite;
|
||||
}
|
||||
|
||||
.connection-status.connected {
|
||||
background: var(--accent);
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
.connection-status.disconnected {
|
||||
background: var(--fg);
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
@keyframes ping {
|
||||
|
||||
0%,
|
||||
100% {
|
||||
opacity: 0.3;
|
||||
transform: scale(0.8);
|
||||
}
|
||||
|
||||
50% {
|
||||
opacity: 0.8;
|
||||
transform: scale(1.2);
|
||||
}
|
||||
}
|
||||
|
||||
.markdown-content p {
|
||||
margin-bottom: 12px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.markdown-content ul,
|
||||
.markdown-content ol {
|
||||
margin-bottom: 12px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.markdown-content li {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.markdown-content code {
|
||||
background: var(--glass);
|
||||
padding: 2px 6px;
|
||||
|
|
@ -573,6 +640,7 @@
|
|||
font-family: monospace;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.markdown-content pre {
|
||||
border-radius: 8px;
|
||||
padding: 12px;
|
||||
|
|
@ -581,10 +649,12 @@
|
|||
background: var(--glass);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.markdown-content pre code {
|
||||
background: none;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.markdown-content h1,
|
||||
.markdown-content h2,
|
||||
.markdown-content h3 {
|
||||
|
|
@ -592,30 +662,37 @@
|
|||
margin-bottom: 8px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.markdown-content h1 {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.markdown-content h2 {
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.markdown-content h3 {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.markdown-content table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
|
||||
.markdown-content table th,
|
||||
.markdown-content table td {
|
||||
padding: 8px;
|
||||
text-align: left;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.markdown-content table th {
|
||||
font-weight: 600;
|
||||
background: var(--glass);
|
||||
}
|
||||
|
||||
.markdown-content blockquote {
|
||||
border-left: 2px solid var(--accent);
|
||||
padding-left: 14px;
|
||||
|
|
@ -623,53 +700,65 @@
|
|||
opacity: 0.7;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.markdown-content a {
|
||||
color: var(--accent);
|
||||
text-decoration: none;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.markdown-content a:hover {
|
||||
opacity: 0.7;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--border);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--fg);
|
||||
opacity: 0.3;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.sidebar {
|
||||
width: 100%;
|
||||
left: -100%;
|
||||
}
|
||||
|
||||
#messages {
|
||||
padding: 20px 16px 140px;
|
||||
}
|
||||
|
||||
.float-menu {
|
||||
left: 12px;
|
||||
top: 12px;
|
||||
}
|
||||
|
||||
.float-logo,
|
||||
.menu-button {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.scroll-to-bottom {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
bottom: 70px;
|
||||
right: 12px;
|
||||
}
|
||||
|
||||
.context-indicator {
|
||||
bottom: 120px;
|
||||
right: 12px;
|
||||
|
|
@ -677,24 +766,20 @@
|
|||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="connection-status connecting" id="connectionStatus"></div>
|
||||
<div class="flash-overlay" id="flashOverlay"></div>
|
||||
<div class="float-menu">
|
||||
<div class="float-logo" id="floatLogo" title="Menu"></div>
|
||||
<div class="menu-button" id="themeBtn" title="Theme">⚙</div>
|
||||
</div>
|
||||
<div class="sidebar" id="sidebar">
|
||||
<div class="sidebar-header">
|
||||
<div class="sidebar-logo"></div>
|
||||
<div class="sidebar-title" id="sidebarTitle">General Bots</div>
|
||||
</div>
|
||||
<button
|
||||
class="sidebar-button"
|
||||
id="voiceToggle"
|
||||
onclick="toggleVoiceMode()"
|
||||
>
|
||||
<button class="sidebar-button" id="voiceToggle" onclick="toggleVoiceMode()">
|
||||
🎤 Voice Mode
|
||||
</button>
|
||||
<div class="history-section">
|
||||
|
|
@ -706,12 +791,7 @@
|
|||
<footer>
|
||||
<div class="suggestions-container" id="suggestions"></div>
|
||||
<div class="input-container">
|
||||
<input
|
||||
id="messageInput"
|
||||
type="text"
|
||||
placeholder="Message..."
|
||||
autofocus
|
||||
/>
|
||||
<input id="messageInput" type="text" placeholder="Message..." autofocus />
|
||||
<button id="voiceBtn" title="Voice">🎤</button>
|
||||
<button id="sendBtn" title="Send">↑</button>
|
||||
</div>
|
||||
|
|
@ -721,11 +801,7 @@
|
|||
<div>Context</div>
|
||||
<div id="contextPercentage">0%</div>
|
||||
<div class="context-progress">
|
||||
<div
|
||||
class="context-progress-bar"
|
||||
id="contextProgressBar"
|
||||
style="width: 0%"
|
||||
></div>
|
||||
<div class="context-progress-bar" id="contextProgressBar" style="width: 0%"></div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
|
|
@ -772,7 +848,7 @@
|
|||
suggestionsContainer = document.getElementById("suggestions"),
|
||||
floatLogo = document.getElementById("floatLogo"),
|
||||
sidebar = document.getElementById("sidebar"),
|
||||
themeBtn = document.getElementById("themeBtn"),
|
||||
|
||||
scrollToBottomBtn = document.getElementById("scrollToBottom"),
|
||||
contextIndicator = document.getElementById("contextIndicator"),
|
||||
contextPercentage =
|
||||
|
|
@ -800,8 +876,7 @@
|
|||
}
|
||||
|
||||
function updateThemeButton() {
|
||||
const icons = { auto: "⚙", dark: "🌙", light: "☀️" };
|
||||
themeBtn.textContent = icons[currentTheme] || "⚙";
|
||||
// Theme button removed for non-logged users
|
||||
}
|
||||
|
||||
function applyTheme() {
|
||||
|
|
@ -847,7 +922,7 @@
|
|||
input.focus();
|
||||
});
|
||||
|
||||
themeBtn.addEventListener("click", toggleTheme);
|
||||
|
||||
|
||||
document.addEventListener("click", function (e) {
|
||||
if (
|
||||
|
|
@ -1714,5 +1789,6 @@
|
|||
}
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Add table
Reference in a new issue