Исправлена кнопка ИИ — гарантированно открывается

This commit is contained in:
Dauren777 2026-06-02 14:52:15 +00:00
parent 40ac0ded51
commit 744ae26b35

View File

@ -63,10 +63,10 @@ th{color:var(--gray);font-size:10px;text-transform:uppercase;font-weight:600;let
@media(max-width:768px){.grid2,.grid3{grid-template-columns:1fr}.kpi-row{grid-template-columns:repeat(2,1fr)}}
.ai-btn{position:fixed;bottom:24px;right:24px;width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,var(--accent),#e74c3c);color:#fff;border:none;font-size:24px;cursor:pointer;box-shadow:0 4px 16px rgba(9,132,227,.3);z-index:999;transition:all .3s;display:flex;align-items:center;justify-content:center}
.ai-btn{position:fixed;bottom:24px;right:24px;width:60px;height:60px;border-radius:50%;background:var(--accent);color:#fff;border:none;font-size:26px;cursor:pointer;box-shadow:0 4px 20px rgba(9,132,227,.4);z-index:9999;transition:all .3s;display:flex;align-items:center;justify-content:center;animation:pulse 2s infinite}
.ai-btn:hover{transform:scale(1.1)}
.ai-chat{position:fixed;bottom:90px;right:24px;width:340px;max-height:450px;background:var(--card);border-radius:14px;box-shadow:0 8px 32px rgba(0,0,0,.15);z-index:998;display:none;flex-direction:column;overflow:hidden;border:1px solid var(--border)}
.ai-chat.open{display:flex}
.ai-chat.open{display:flex!important}
.ai-chat .hd{background:linear-gradient(135deg,#2d3436,#636e72);color:#fff;padding:12px 16px;font-size:14px;font-weight:700;display:flex;justify-content:space-between;align-items:center}
.ai-chat .hd button{background:none;border:none;color:#fff;font-size:18px;cursor:pointer}
.ai-chat .msgs{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;max-height:300px}
@ -987,7 +987,12 @@ document.querySelectorAll('#tabs .tab').forEach(tab => {
<script>
function toggleAI() {
document.getElementById('aiChat').classList.toggle('open');
var chat = document.getElementById('aiChat');
if(chat.style.display === 'flex') {
chat.style.display = 'none';
} else {
chat.style.display = 'flex';
}
}
function addMsg(text, cls) {