From b4f687acb17b731875cd90af0184f873b8d65375 Mon Sep 17 00:00:00 2001 From: Jukka Lampikoski Date: Wed, 11 Mar 2026 20:14:03 +0200 Subject: [PATCH] Kehitysehdotus-nappi footeriin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 💡-nappi sivun alareunassa avaa kehitysehdotuslomakkeen suoraan (navigoi todo/features-välilehdelle ja avaa uuden ehdotuksen). Co-Authored-By: Claude Opus 4.6 --- index.html | 1 + script.js | 10 ++++++++++ style.css | 21 +++++++++++++++++++++ 3 files changed, 32 insertions(+) diff --git a/index.html b/index.html index 574d1ee..d05b4a3 100644 --- a/index.html +++ b/index.html @@ -1667,6 +1667,7 @@ diff --git a/script.js b/script.js index 9471315..77299d9 100644 --- a/script.js +++ b/script.js @@ -4556,6 +4556,16 @@ document.getElementById('netadmin-detail-form')?.addEventListener('submit', asyn } catch (e) { alert('Tallennus epäonnistui: ' + e.message); } }); +// ==================== FOOTER: KEHITYSEHDOTUS ==================== + +function openFeatureSuggestion() { + switchToTab('todo', 'features'); + // Pieni viive jotta tab ehtii latautua + setTimeout(() => { + openFeatureEdit(null); + }, 200); +} + // ==================== DOKUMENTIT ==================== let allDocuments = []; diff --git a/style.css b/style.css index 321b3d0..7e7961d 100644 --- a/style.css +++ b/style.css @@ -493,6 +493,27 @@ footer { font-size: 0.8rem; border-top: 1px solid #e5e7eb; margin-top: 1rem; + display: flex; + justify-content: center; + align-items: center; + gap: 1.5rem; +} + +.footer-idea-btn { + background: none; + border: 1px dashed #ccc; + border-radius: 20px; + padding: 0.35rem 1rem; + font-size: 0.8rem; + color: #999; + cursor: pointer; + transition: all 0.2s; +} + +.footer-idea-btn:hover { + border-color: var(--primary-color); + color: var(--primary-color); + background: #f0f7ff; } /* Buttons */