my tummy hurts
This commit is contained in:
parent
2a0c5071a4
commit
50d49e380a
@ -5,7 +5,7 @@ export default function Relationship(props) {
|
|||||||
const calcPath = (x1, x2, y1, y2) => {
|
const calcPath = (x1, x2, y1, y2) => {
|
||||||
let r = 16;
|
let r = 16;
|
||||||
const offsetX = 8;
|
const offsetX = 8;
|
||||||
const tableWidth = 220;
|
const tableWidth = 200;
|
||||||
const midX = (x2 + x1 + tableWidth) / 2;
|
const midX = (x2 + x1 + tableWidth) / 2;
|
||||||
const endX = x2 + tableWidth < x1 ? x2 + tableWidth - offsetX * 2 : x2;
|
const endX = x2 + tableWidth < x1 ? x2 + tableWidth - offsetX * 2 : x2;
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ export default function Table(props) {
|
|||||||
key={props.id}
|
key={props.id}
|
||||||
x={props.tableData.x}
|
x={props.tableData.x}
|
||||||
y={props.tableData.y}
|
y={props.tableData.y}
|
||||||
width={220}
|
width={200}
|
||||||
height={height}
|
height={height}
|
||||||
style={{ cursor: "move" }}
|
style={{ cursor: "move" }}
|
||||||
onMouseDown={props.onMouseDown}
|
onMouseDown={props.onMouseDown}
|
||||||
|
@ -35,7 +35,11 @@ export default function Editor(props) {
|
|||||||
<div className="h-[100vh] overflow-hidden">
|
<div className="h-[100vh] overflow-hidden">
|
||||||
<ControlPanel layout={layout} setLayout={setLayout} />
|
<ControlPanel layout={layout} setLayout={setLayout} />
|
||||||
<div
|
<div
|
||||||
className={`flex h-[calc(100vh-123.93px)]`}
|
className={
|
||||||
|
layout.header
|
||||||
|
? `flex h-[calc(100vh-123.93px)]`
|
||||||
|
: `flex h-[calc(100vh-51.97px)]`
|
||||||
|
}
|
||||||
onMouseUp={() => setResize(false)}
|
onMouseUp={() => setResize(false)}
|
||||||
onMouseMove={dragHandler}
|
onMouseMove={dragHandler}
|
||||||
>
|
>
|
||||||
@ -56,7 +60,6 @@ export default function Editor(props) {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<Canvas
|
<Canvas
|
||||||
width={window.innerWidth-width-8}
|
|
||||||
tables={tables}
|
tables={tables}
|
||||||
setTables={setTables}
|
setTables={setTables}
|
||||||
code={code}
|
code={code}
|
||||||
|
Loading…
Reference in New Issue
Block a user