Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

folder request sequencing draft #4002

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ const RunCollectionItem = ({ collection, item, onClose }) => {
const recursiveRunLength = getRequestsCount(flattenedItems);

const isFolderLoading = areItemsLoading(item);
console.log(item);
console.log(isFolderLoading);

return (
<StyledWrapper>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,66 @@ const Wrapper = styled.div`
height: 1.875rem;
cursor: pointer;
user-select: none;
position: relative;

/* Common styles for drop indicators */
&::before,
&::after {
content: '';
position: absolute;
left: 0;
right: 0;
height: 2px;
background: ${(props) => props.theme.dragAndDrop.border};
opacity: 0;
transition: ${(props) => props.theme.dragAndDrop.transition};
pointer-events: none;
}

&::before {
top: 0;
}

&::after {
bottom: 0;
}

/* Drop target styles */
&.drop-target {
background-color: ${(props) => props.theme.dragAndDrop.hoverBg};

&::before,
&::after {
opacity: 0;
}
}

&.drop-target-above {
&::before {
opacity: 1;
height: 2px;
}
}

&.drop-target-below {
&::after {
opacity: 1;
height: 2px;
}
}

/* Inside drop target style */
&.drop-target {
&::before {
top: 0;
bottom: 0;
height: 100%;
opacity: 1;
background: ${(props) => props.theme.dragAndDrop.hoverBg};
border: ${(props) => props.theme.dragAndDrop.borderStyle} ${(props) => props.theme.dragAndDrop.border};
border-radius: 4px;
}
}

.rotate-90 {
transform: rotateZ(90deg);
Expand All @@ -45,6 +105,20 @@ const Wrapper = styled.div`
}
}

&.item-target {
background: #ccc3;
}

&.item-seperator {
.seperator {
bottom: 0px;
position: absolute;
height: 3px;
width: 100%;
background: #ccc3;
}
}

&.item-focused-in-tab {
background: ${(props) => props.theme.sidebar.collection.item.bg};

Expand Down
Loading