fix(labs): убрать горизонтальный скролл в панели Планиметрии
Причина: .geo-tool-btn имел white-space:nowrap, длинные подписи ('Подобие (гомотетия)', 'Параллельность', 'Средняя линия') вылезали за пределы 1fr-ячейки 2-колоночного грида.
Фикс:
- white-space:normal + word-break:break-word + line-height 1.15 в .geo-panel-modern → текст переносится в 2 строки
- overflow-x:hidden на саму панель — гарантия что горизонтальный скролл не появится
- min-width:0 на грид и его ячейки — иначе текст не сжимался
- 'Подобие (гомотетия)' → 'Подобие' (полное название осталось в title)
This commit is contained in:
+14
-2
@@ -1952,10 +1952,22 @@ canvas[data-draggable]:active { cursor: grabbing; }
|
|||||||
width: 260px !important;
|
width: 260px !important;
|
||||||
padding: 10px 10px !important;
|
padding: 10px 10px !important;
|
||||||
gap: 6px !important;
|
gap: 6px !important;
|
||||||
|
overflow-x: hidden !important;
|
||||||
}
|
}
|
||||||
.geo-panel-modern .geo-tool-btn {
|
.geo-panel-modern .geo-tool-btn {
|
||||||
font-size: .78rem;
|
font-size: .76rem;
|
||||||
padding: 6px 8px;
|
padding: 6px 7px;
|
||||||
|
white-space: normal;
|
||||||
|
text-align: left;
|
||||||
|
line-height: 1.15;
|
||||||
|
min-width: 0;
|
||||||
|
word-break: break-word;
|
||||||
|
}
|
||||||
|
.geo-panel-modern .geo-tool-grid {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.geo-panel-modern .geo-tool-wide {
|
||||||
|
grid-column: 1 / -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sticky quick-access bar */
|
/* sticky quick-access bar */
|
||||||
|
|||||||
+2
-2
@@ -4418,9 +4418,9 @@
|
|||||||
<svg viewBox="0 0 24 24" fill="none"><circle cx="6" cy="18" r="2.5" stroke-width="1.5"/><circle cx="18" cy="6" r="2.5" stroke-width="1.5"/><line x1="6" y1="18" x2="18" y2="6" stroke-width="1.5" marker-end="url(#arrow)"/><circle cx="14" cy="18" r="2.5" stroke-width="1.5" opacity=".4"/><circle cx="21" cy="9" r="2" stroke-width="1.5" stroke-dasharray="3,2"/></svg>
|
<svg viewBox="0 0 24 24" fill="none"><circle cx="6" cy="18" r="2.5" stroke-width="1.5"/><circle cx="18" cy="6" r="2.5" stroke-width="1.5"/><line x1="6" y1="18" x2="18" y2="6" stroke-width="1.5" marker-end="url(#arrow)"/><circle cx="14" cy="18" r="2.5" stroke-width="1.5" opacity=".4"/><circle cx="21" cy="9" r="2" stroke-width="1.5" stroke-dasharray="3,2"/></svg>
|
||||||
Перенос
|
Перенос
|
||||||
</button>
|
</button>
|
||||||
<button id="geo-btn-scale" class="geo-tool-btn geo-tool-wide" onclick="geoSetTool('scale',this)" title="Подобие — клик центр O, затем клик точку P → P' = O + k·(P − O)">
|
<button id="geo-btn-scale" class="geo-tool-btn geo-tool-wide" onclick="geoSetTool('scale',this)" title="Подобие (гомотетия) — клик центр O, затем клик точку P → P' = O + k·(P − O)">
|
||||||
<svg viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="2" fill="currentColor"/><line x1="12" y1="12" x2="20" y2="6" stroke-width="1.5"/><circle cx="20" cy="6" r="2.5" stroke-width="1.5"/><line x1="12" y1="12" x2="17" y2="18" stroke-width="1.5" stroke-dasharray="3,2"/><circle cx="17" cy="18" r="2.5" stroke-width="1.5" stroke-dasharray="3,2"/></svg>
|
<svg viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="2" fill="currentColor"/><line x1="12" y1="12" x2="20" y2="6" stroke-width="1.5"/><circle cx="20" cy="6" r="2.5" stroke-width="1.5"/><line x1="12" y1="12" x2="17" y2="18" stroke-width="1.5" stroke-dasharray="3,2"/><circle cx="17" cy="18" r="2.5" stroke-width="1.5" stroke-dasharray="3,2"/></svg>
|
||||||
Подобие (гомотетия)
|
Подобие
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="geo-ngon-ctrl" id="geo-scale-ctrl" style="margin-top:6px">
|
<div class="geo-ngon-ctrl" id="geo-scale-ctrl" style="margin-top:6px">
|
||||||
|
|||||||
Reference in New Issue
Block a user