исправление стилей соединений и padding сохранения svg

This commit is contained in:
Ellina Sohnenko 2026-05-20 07:26:45 +03:00
parent df37ab9e88
commit 99f520a672
3 changed files with 4 additions and 4 deletions

View File

@ -196,8 +196,8 @@ html, body, #root {
.preview-port { .preview-port {
position: absolute; position: absolute;
width: 6px; width: 7px;
height: 6px; height: 7px;
border-radius: 50%; border-radius: 50%;
} }

View File

@ -84,7 +84,7 @@ function App() {
} }
const bounds = getNodesBounds(nodes) const bounds = getNodesBounds(nodes)
const padding = 20 const padding = 30
const widthExportWindow = bounds.width + padding * 2 const widthExportWindow = bounds.width + padding * 2
const heightExportWindow = bounds.height + padding * 2 const heightExportWindow = bounds.height + padding * 2

View File

@ -64,7 +64,7 @@ export const ToolbarBlock = memo(({ block, onDragStart }) => {
export function ToolbarLine({ line, caseWidth, isActive, onClick }) { export function ToolbarLine({ line, caseWidth, isActive, onClick }) {
return ( return (
<button <button
className={isActive ? 'activeConnectionTab' : 'notActiveConnectionTab'} className={isActive ? 'activeEdgeTab' : 'notActiveEdgeTab'}
onClick={() => onClick && onClick(line.type)} onClick={() => onClick && onClick(line.type)}
style={{ style={{
width: `${caseWidth}px`, width: `${caseWidth}px`,