diff --git a/public/assets/chat.css b/public/assets/chat.css index d169c6b..b23b2fb 100644 --- a/public/assets/chat.css +++ b/public/assets/chat.css @@ -8,6 +8,8 @@ #scBtn:hover{transform:translate(-2px,-2px);box-shadow:var(--sc-shadow)} #scBtn:focus-visible{outline:3px solid var(--sc-me);outline-offset:3px} #scChat.open #scBtn{background:var(--sc-head);color:var(--sc-ink)} +/* the panel sets display:flex, which would beat the hidden attribute: closing must win */ +#scPanel[hidden]{display:none} #scPanel{position:absolute;right:0;bottom:74px;width:370px;max-width:calc(100vw - 32px);height:540px;max-height:calc(100vh - 110px);display:flex;flex-direction:column; background:var(--sc-bg);color:var(--sc-ink);border:var(--sc-edge);border-radius:16px;box-shadow:var(--sc-shadow);overflow:hidden} .sc-head{display:flex;align-items:flex-start;gap:10px;padding:14px 16px;background:var(--sc-head);color:var(--sc-ink);border-bottom:var(--sc-edge)}