From 021ee7921975647ddc4ff08497e6bd9bcd551114 Mon Sep 17 00:00:00 2001 From: Maxim Dolgolyov Date: Tue, 26 May 2026 19:07:59 +0300 Subject: [PATCH] =?UTF-8?q?fix(labs):=20collapsible-=D1=81=D0=B5=D0=BA?= =?UTF-8?q?=D1=86=D0=B8=D0=B8=20=D0=BD=D0=B5=20=D0=BD=D0=B0=D0=B5=D0=B7?= =?UTF-8?q?=D0=B6=D0=B0=D1=8E=D1=82=20=D0=B4=D1=80=D1=83=D0=B3=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=B4=D1=80=D1=83=D0=B3=D0=B0=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D1=80=D0=B0=D1=81=D0=BA=D1=80=D1=8B=D1=82=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Причина: .geo-acc и .dyn-acc имели overflow:hidden и без flex:0 0 auto. В flex-колонке родительская панель сжимала их при раскрытии, и контент клипировался или наезжал на соседние секции. Фикс: - Убран overflow:hidden — контент не клипируется - flex: 0 0 auto — секция занимает свою натуральную высоту без сжатия - Border-radius на summary отдельно (без overflow:hidden иначе углы тела торчат) - Open-состояние: верхние углы скруглены, нижние квадратные (стыкуются с body) --- frontend/css/lab.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/css/lab.css b/frontend/css/lab.css index 32492a6..3b5128b 100644 --- a/frontend/css/lab.css +++ b/frontend/css/lab.css @@ -1997,7 +1997,7 @@ canvas[data-draggable]:active { cursor: grabbing; } border-radius: 9px; margin-bottom: 5px; background: rgba(255,255,255,0.02); - overflow: hidden; + flex: 0 0 auto; } .geo-acc > summary { cursor: pointer; @@ -2128,8 +2128,12 @@ canvas[data-draggable]:active { cursor: grabbing; } border-radius: 10px; margin-bottom: 8px; background: rgba(255,255,255,0.02); - overflow: hidden; + flex: 0 0 auto; } +.dyn-acc > summary { border-radius: 10px; } +.dyn-acc[open] > summary { border-radius: 10px 10px 0 0; } +.geo-acc > summary { border-radius: 9px; } +.geo-acc[open] > summary { border-radius: 9px 9px 0 0; } .dyn-acc > summary { cursor: pointer; list-style: none;