Skip to content

Commit

Permalink
fix: Clone display inheritance (#3822)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjon3s authored Oct 17, 2024
1 parent 7af28cd commit 8e2bd8a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Filter: React.FC<Props> = React.memo((props) => {
<>
<Hanger hidden={isDragging} before={props.id} parent={parent} />
<li
className={classNames("card", "decision", {
className={classNames("card", "decision", "type-Filter", {
isDragging,
isClone: isClone(props.id),
isNote: childNodes.length === 0,
Expand Down
6 changes: 4 additions & 2 deletions editor.planx.uk/src/pages/FlowEditor/floweditor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ $fontMonospace: "Source Code Pro", monospace;
outline-offset: 0;
}

&.isClone a {
&.isClone > div,
&.isClone > a {
margin-top: 3px;
position: relative;
::before {
content: "";
position: absolute;
Expand All @@ -139,7 +141,7 @@ $fontMonospace: "Source Code Pro", monospace;
}

// Allow nodes to expand to width of data when toggled
&:not(.type-Section):not(.portal) > a {
&:not(.type-Section):not(.portal):not(.type-Filter) > a {
width: 100%;
}

Expand Down

0 comments on commit 8e2bd8a

Please sign in to comment.