format
continuous-integration/drone/push Build is passing Details

pull/81/head
DahmaneYanis 1 year ago
parent b48eb385a9
commit 5407d3fcb7

@ -116,7 +116,8 @@ export default function BendableArrow({
const styleWidth = style?.width ?? ArrowStyleDefaults.width const styleWidth = style?.width ?? ArrowStyleDefaults.width
const computeInternalSegments = useCallback((segments: Segment[]) => { const computeInternalSegments = useCallback(
(segments: Segment[]) => {
return segments.map((segment, idx) => { return segments.map((segment, idx) => {
if (idx == 0) { if (idx == 0) {
return { return {
@ -132,7 +133,9 @@ export default function BendableArrow({
end: segment.next, end: segment.next,
} }
}) })
}, [segments, startPos]) },
[segments, startPos],
)
// Cache the segments so that when the user is changing the segments (it moves an ArrowPoint), // Cache the segments so that when the user is changing the segments (it moves an ArrowPoint),
// it does not unwind to this arrow's component parent until validated. // it does not unwind to this arrow's component parent until validated.
@ -151,8 +154,6 @@ export default function BendableArrow({
const headRef = useRef<HTMLDivElement>(null) const headRef = useRef<HTMLDivElement>(null)
const tailRef = useRef<HTMLDivElement>(null) const tailRef = useRef<HTMLDivElement>(null)
/** /**
* Computes and return the segments edition points * Computes and return the segments edition points
* @param parentBase * @param parentBase

@ -1,11 +1,10 @@
#main { #main {
margin-left: 10%; margin-left: 10%;
margin-right: 10%; margin-right: 10%;
border: solid 2px purple; border: solid 2px purple;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
font-family: Helvetica,; font-family: Helvetica;
} }
.new { .new {
@ -22,14 +21,13 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
border: solid 10px violet; border: solid 10px violet;
margin:0px margin: 0px;
} }
#personal-space { #personal-space {
background-color: orange; background-color: orange;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
#sideMenu { #sideMenu {
@ -48,13 +46,12 @@
.titreSideMenu { .titreSideMenu {
border-bottom: black solid 2px; border-bottom: black solid 2px;
width: 95%; width: 95%;
} }
#sideMenu .title { #sideMenu .title {
font-size: 13px; font-size: 13px;
font-weight: bold; font-weight: bold;
color : #FFFFFF; color: #ffffff;
letter-spacing: 1px; letter-spacing: 1px;
text-transform: uppercase; text-transform: uppercase;
background-color: black; background-color: black;
@ -83,5 +80,4 @@ td {
td:hover { td:hover {
background-color: red; background-color: red;
} }
Loading…
Cancel
Save