From 620eda2959f56e2460f89c2a2a9cf14ea1e0c4d3 Mon Sep 17 00:00:00 2001 From: dj-oyu <68707227+dj-oyu@users.noreply.github.com> Date: Sun, 22 Feb 2026 10:19:21 +0900 Subject: [PATCH] fix: toggle skill selection on repeated tap Tapping the same skill tile again deselects it, removing the highlight border and hiding the send bar input. Co-Authored-By: Claude Opus 4.6 --- pkg/miniapp/static/index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/miniapp/static/index.html b/pkg/miniapp/static/index.html index cb3154f9c..ae4319d8c 100644 --- a/pkg/miniapp/static/index.html +++ b/pkg/miniapp/static/index.html @@ -694,6 +694,12 @@ function renderSkillsFromData(data) { el.querySelectorAll('.skill-item').forEach(function(item) { item.addEventListener('click', function() { + if (selectedSkill === item.dataset.skill) { + item.classList.remove('selected'); + selectedSkill = null; + document.getElementById('send-bar').style.display = 'none'; + return; + } el.querySelectorAll('.skill-item').forEach(function(i) { i.classList.remove('selected'); }); item.classList.add('selected'); selectedSkill = item.dataset.skill;