From 8e443da4f1a313a58035c762ae1e3172ab047adb Mon Sep 17 00:00:00 2001 From: "info@pi-farm.de" Date: Thu, 5 Mar 2026 19:26:48 +0000 Subject: [PATCH] templates/index.html aktualisiert --- templates/index.html | 67 ++++++++++++++++++++++---------------------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/templates/index.html b/templates/index.html index 3a116c3..5d20d0f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -81,42 +81,43 @@ font-size: 1.2em; } - /* Nur für Dropdowns und Eingabefelder (NICHT für den Button!) */ + /* Erzeugt eine horizontale Reihe für alle Steuerelemente */ + .toolbar-controls { + display: flex; + align-items: center; + gap: 12px; /* Abstand zwischen den Elementen */ + flex-wrap: nowrap; /* Verhindert das Umbrechen in eine neue Zeile */ + } + + /* Verhindert, dass Labels umbrechen */ + .toolbar-controls label { + white-space: nowrap; + font-size: 13px; + color: #bdc3c7; + } + + /* Der URL-Container als Teil der horizontalen Kette */ + #ollama-url-container { + display: none; /* Wird per JS auf 'flex' gesetzt */ + align-items: center; + gap: 8px; + border-left: 1px solid #555; + padding-left: 12px; + } + + /* Kurze Korrektur für die Eingabefelder, damit sie nicht zu breit werden */ .toolbar-controls select, .toolbar-controls input { - padding: 5px 10px; + height: 32px; + background: white; + color: #2c3e50; border-radius: 4px; - border: 1px solid #bdc3c7; - color: #2c3e50; /* Dunkle Schrift */ - background-color: white; /* Weißer Grund */ - font-size: 14px; - outline: none; + padding: 0 8px; + font-size: 13px; } - /* Spezifisches Styling für den Speichern-Button */ - .toolbar-controls .save-btn { - background-color: #27ae60; - color: white; /* Weiße Schrift */ - border: none; - cursor: pointer; - font-weight: bold; - padding: 6px 15px; - border-radius: 4px; - transition: background 0.2s; - } - - .toolbar-controls .save-btn:hover { - background-color: #2ecc71; - } - - /* Der Container für die URL */ - #ollama-url-container { - display: none; /* Standardmäßig versteckt */ - align-items: center; - gap: 10px; - margin-left: 10px; - border-left: 1px solid #7f8c8d; - padding-left: 10px; + #ollama-url { + width: 180px; /* Damit das Feld nicht die ganze Leiste sprengt */ } /* WICHTIG: Den Speichern-Button überschreiben wir wieder, damit er grün mit weißer Schrift bleibt */ @@ -167,8 +168,8 @@
- - + +