From ee8788e4824c62641171fed64521fa627b21f62c Mon Sep 17 00:00:00 2001 From: alpha-nerd-nomyo Date: Fri, 5 Sep 2025 12:00:47 +0200 Subject: [PATCH] Add files via upload textformatting improved --- static/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/index.html b/static/index.html index c4e522a..8237c79 100644 --- a/static/index.html +++ b/static/index.html @@ -203,7 +203,7 @@ async function loadTags(){ const resp = await fetch(`/api/show?model=${encodeURIComponent(model)}`,{method:'POST'}); if (!resp.ok) throw new Error(`Status ${resp.status}`); const data = await resp.json(); - document.getElementById('json-output').textContent = JSON.stringify(data, null, 2); + document.getElementById('json-output').textContent = JSON.stringify(data, null, 2).replace(/\\n/g, '\n'); document.getElementById('show-modal').style.display = 'flex'; } catch (err) { console.error(err); @@ -253,7 +253,7 @@ async function loadPS(){ /* ---------- Usage Chart (stacked‑percentage) ---------- */ function getColor(seed){ const h = Math.abs(hashString(seed) % 360); - return `hsl(${h}, 80%, 40%)`; + return `hsl(${h}, 80%, 30%)`; } function hashString(str){ let hash = 0;