исправление стилей соединений и padding сохранения svg
This commit is contained in:
parent
df37ab9e88
commit
99f520a672
@ -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%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
@ -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`,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user