From a6fcedcee9dd31a499106090375da3292916b1e1 Mon Sep 17 00:00:00 2001 From: "info@pi-farm.de" Date: Fri, 6 Mar 2026 16:27:46 +0000 Subject: [PATCH] templates/index.html aktualisiert --- templates/index.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/index.html b/templates/index.html index fc7e63b..52f4d3c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -100,7 +100,8 @@ align-items: center; gap: 8px; border-left: 1px solid #475569; - padding-left: 20px; + padding-left: 12px; + min-width: 300px; /* Macht das Feld deutlich breiter */ } .toolbar-controls select, @@ -337,11 +338,11 @@ } catch (e) {} } - async function updateModelDropdown(isInitialLoad = false) { + async function updateModelDropdown(isInitialLoad = false) { const provider = document.getElementById('ai-provider').value; const modelSelect = document.getElementById('ai-model'); const urlContainer = document.getElementById('ollama-url-container'); - let ollamaUrl = document.getElementById('ollama-url').value; + const ollamaUrl = document.getElementById('ollama-url').value; urlContainer.style.display = (provider === "ollama") ? "flex" : "none"; modelSelect.innerHTML = ''; @@ -357,10 +358,11 @@ opt.value = opt.textContent = m; modelSelect.appendChild(opt); }); + const savedModel = currentSettings[`${provider}_model`]; if (isInitialLoad && savedModel) modelSelect.value = savedModel; } - } catch (e) { modelSelect.innerHTML = ''; } + } catch (e) { modelSelect.innerHTML = ''; } } async function saveSettings() {