Chat widget would not close (Marty 2026-11-15): #scPanel's display:flex beat the hidden attribute and Stack POL has no global [hidden] rule; add #scPanel[hidden]{display:none}. chat.css?v=20261115e, chat.js?v=hide1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-15 13:57:26 -06:00
parent 7446df2f4f
commit b6e020e025
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
(function () {
if (window.__siteChat || /^\/admin/.test(location.pathname)) return;
window.__siteChat = 1;
var css = document.createElement('link'); css.rel = 'stylesheet'; css.href = '/assets/chat.css?v=20261115d'; document.head.appendChild(css);
var css = document.createElement('link'); css.rel = 'stylesheet'; css.href = '/assets/chat.css?v=20261115e'; document.head.appendChild(css);
var NAME = 'this site', TOPICS = [];
var root = document.createElement('div'); root.id = 'scChat';
root.innerHTML = '<button id="scBtn" type="button" aria-label="Ask a question" aria-expanded="false">'