Skip to content

Commit

Permalink
fix items under the same hierarchy should be on the same side
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Wegria committed Jun 3, 2024
1 parent b6ea237 commit 482b69a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/assets/stylesheets/webpack/line/line.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
display: flex;
position: relative;
flex-flow: column;
gap: 10px;
}

.line__group__item__wrapper {
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/components/Line/components/Line.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ const Items = forwardRef((props, ref) => {
}

const renderItems = (items) => {
currentCount.current += 1
return (
<div className={`line__group__items__wrapper move_up-${currentEmptyCount}`}>
{items.map((it, idx) => {
currentCount.current += 1
return renderItem(it, idx)
}
)}
Expand Down

0 comments on commit 482b69a

Please sign in to comment.