From aff07647eccf71a4d66899e09f7d3cfcd00cf17f Mon Sep 17 00:00:00 2001 From: Maxim Dolgolyov Date: Thu, 4 Jun 2026 16:42:45 +0300 Subject: [PATCH] =?UTF-8?q?fix(assistant):=20=D0=BF=D0=BE=D0=BC=D0=BE?= =?UTF-8?q?=D1=89=D0=BD=D0=B8=D0=BA=20=D0=BD=D0=B5=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=BA=D1=80=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=20=D1=81=D0=B0?= =?UTF-8?q?=D0=B9=D0=B4=D0=B1=D0=B0=D1=80=20=E2=80=94=20=D1=81=D0=B4=D0=B2?= =?UTF-8?q?=D0=B8=D0=B3=20=D0=B2=20=D0=BA=D0=BE=D0=BD=D1=82=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=BD=D1=83=D1=8E=20=D0=BE=D0=B1=D0=BB=D0=B0=D1=81=D1=82?= =?UTF-8?q?=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Компаньон стоял на left:18px, поверх профиля внизу сайдбара (230/62px). Теперь сдвигается правее сайдбара (.app-layout ~ .asst-root: 248px, collapsed 80px), на мобиле — к левому краю (шторка). Плавный transition при сворачивании. Co-Authored-By: Claude Opus 4.8 (1M context) --- frontend/js/assistant.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/js/assistant.js b/frontend/js/assistant.js index 49be345..563f034 100644 --- a/frontend/js/assistant.js +++ b/frontend/js/assistant.js @@ -186,7 +186,10 @@ if (document.getElementById('asst-style')) return; var s = document.createElement('style'); s.id = 'asst-style'; s.textContent = [ - '.asst-root{position:fixed;left:18px;bottom:18px;z-index:8500;font-family:Manrope,system-ui,sans-serif;}', + '.asst-root{position:fixed;left:18px;bottom:18px;z-index:8500;font-family:Manrope,system-ui,sans-serif;transition:left .28s cubic-bezier(.4,0,.2,1);}', + // в приложении сдвигаем правее сайдбара (230/62px), чтобы не перекрывать профиль в сайдбаре + '.app-layout ~ .asst-root{left:248px;}', + '.app-layout.sb-collapsed ~ .asst-root{left:80px;}', '.asst-fab{width:54px;height:54px;border-radius:50%;border:none;background:#fff;cursor:pointer;padding:4px;', ' box-shadow:0 8px 24px rgba(139,92,246,.32);transition:transform .15s;position:relative;display:block;}', '.asst-fab:hover{transform:translateY(-2px) scale(1.04);}', @@ -215,7 +218,8 @@ '.asst-ans-q{font-weight:700;color:#0F172A;margin-bottom:2px;}', '.asst-ans-link{display:inline-block;margin-top:4px;color:#9B5DE5;font-weight:700;font-size:.78rem;text-decoration:none;}', '.asst-empty{font-size:.82rem;color:#8a94a6;padding:6px 0;}', - '@media(max-width:640px){.asst-root{left:12px;bottom:72px;}.asst-fab{width:48px;height:48px;}}', + // на мобиле сайдбар — выезжающая шторка, контент во всю ширину → к левому краю + '@media(max-width:768px){.asst-root,.app-layout ~ .asst-root,.app-layout.sb-collapsed ~ .asst-root{left:12px;bottom:18px;}.asst-fab{width:48px;height:48px;}}', ].join(''); document.head.appendChild(s); }