Poistettu fonttiskaalaus (A-/A+) — ei vaikuttanut terminaaliin

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jaakko Vanhala
2026-04-11 08:33:20 +03:00
parent 8bd86e6325
commit 9058033669
2 changed files with 1 additions and 16 deletions

View File

@@ -29,10 +29,6 @@ import Settings from "../components/Settings.astro";
<h1 style="margin-bottom:0"><span style="color:#ff6b00">Kipinä</span> Agentic Playground</h1> <h1 style="margin-bottom:0"><span style="color:#ff6b00">Kipinä</span> Agentic Playground</h1>
<p style="color:#8b949e;margin:0">AI-ohjelmistokehitystiimi · <span id="hub-version">-</span></p> <p style="color:#8b949e;margin:0">AI-ohjelmistokehitystiimi · <span id="hub-version">-</span></p>
</div> </div>
<div style="display:flex;gap:4px;align-items:center">
<button onclick="changeFontSize(-1)" class="btn btn-muted" style="font-size:14px;padding:2px 8px" title="Pienennä fonttia">A-</button>
<button onclick="changeFontSize(1)" class="btn btn-muted" style="font-size:14px;padding:2px 8px" title="Suurenna fonttia">A+</button>
</div>
</div> </div>
<!-- Välilehdet --> <!-- Välilehdet -->
@@ -57,17 +53,6 @@ import Settings from "../components/Settings.astro";
<script is:inline> <script is:inline>
// === Helpers === // === Helpers ===
// Fonttikoon säätö (±20%, 5 askelta)
let fontScale = parseFloat(localStorage.getItem('kpn-font-scale') || '1');
document.documentElement.style.fontSize = (fontScale * 16) + 'px';
window.changeFontSize = function(dir) {
fontScale = Math.max(0.8, Math.min(1.2, fontScale + dir * 0.05));
fontScale = Math.round(fontScale * 100) / 100;
document.documentElement.style.fontSize = (fontScale * 16) + 'px';
localStorage.setItem('kpn-font-scale', String(fontScale));
};
function esc(str) { function esc(str) {
if (!str) return ''; if (!str) return '';
return String(str).replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;'); return String(str).replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/"/g,'&quot;');

View File

@@ -14,7 +14,7 @@
body { body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 1rem; font-size: 16px;
background: var(--bg); background: var(--bg);
color: var(--text); color: var(--text);
min-height: 100vh; min-height: 100vh;