Skip to content

Commit

Permalink
fix: provide.placeholder가 필수값임에 따른 추가 및 기존 컴포넌트 위치 조정
Browse files Browse the repository at this point in the history
  • Loading branch information
Kjiw0n committed Jul 17, 2024
1 parent 8a4919a commit 86b3333
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/common/BtnTaskContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const BtnTaskContainer = styled.div<{ type: string }>`
flex-direction: column;
gap: 1rem;
width: 31.8rem;
height: ${({ type }) => (type === 'staging' ? '56.7rem' : '64rem')};
height: ${({ type }) => (type === 'staging' ? '56rem' : '61rem')};
overflow: auto;
overflow-y: scroll;
Expand Down
1 change: 1 addition & 0 deletions src/components/common/ScrollGradient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default ScrollGradient;
const ScrollGradientLayout = styled.div`
position: absolute;
bottom: 0;
left: 0;
z-index: 1;
display: flex;
flex-direction: column;
Expand Down
2 changes: 2 additions & 0 deletions src/components/common/StagingArea/StagingArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ function StagingArea(props: StagingAreaProps) {
selectedTarget={selectedTarget}
tasks={tasks}
/>
{provided.placeholder}
</div>
)}
</Droppable>
Expand All @@ -39,6 +40,7 @@ function StagingArea(props: StagingAreaProps) {
export default StagingArea;

const StagingAreaLayout = styled.div`
position: relative;
display: inline-flex;
gap: 0.8rem;
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { Draggable } from 'react-beautiful-dnd';
import BtnTaskContainer from '../BtnTaskContainer';

import BtnTask from '@/components/common/BtnTask/BtnTask';
import ScrollGradient from '@/components/common/ScrollGradient';
import StagingAreaSetting from '@/components/common/StagingArea/StagingAreaSetting';
import { TaskType } from '@/types/tasks/taskType';

Expand Down Expand Up @@ -46,7 +45,6 @@ function StagingAreaTaskContainer(props: StagingAreaTaskContainerProps) {
)}
</Draggable>
))}
<ScrollGradient />
</BtnTaskContainer>
</StagingAreaTaskContainerLayout>
);
Expand Down
2 changes: 2 additions & 0 deletions src/components/common/textbox/TextInputStaging.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ function TextInputStaging() {
}

const StagingLayout = styled.div`
position: absolute;
bottom: 2.8rem;
display: flex;
flex-direction: column;
justify-content: space-between;
Expand Down
1 change: 1 addition & 0 deletions src/components/targetArea/TargetArea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function TargetArea(props: TargetAreaProps) {
selectedTarget={selectedTarget}
tasks={tasks}
/>
{provided.placeholder}
</div>
)}
</Droppable>
Expand Down
2 changes: 0 additions & 2 deletions src/components/targetArea/TargetTaskSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Draggable } from 'react-beautiful-dnd';

import BtnTask from '../common/BtnTask/BtnTask';
import BtnTaskContainer from '../common/BtnTaskContainer';
import ScrollGradient from '../common/ScrollGradient';

import { TaskType } from '@/types/tasks/taskType';

Expand Down Expand Up @@ -40,7 +39,6 @@ function TargetTaskSection(props: TargetTaskSectionProps) {
)}
</Draggable>
))}
<ScrollGradient />
</BtnTaskContainer>
);
}
Expand Down

0 comments on commit 86b3333

Please sign in to comment.