Skip to content

Commit

Permalink
fix: adjust overflow behavior for mobile and desktop views
Browse files Browse the repository at this point in the history
  • Loading branch information
MirzaHanan committed Dec 29, 2024
1 parent f5ec324 commit 3574954
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions src/people/WorkSpacePlanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@ import { useIsMobile } from '../../hooks';
import { WorkspacePlannerHeader } from './WorkspacePlannerHeader';
import BountyCardComp from './BountyCard';

// Add these interfaces at the top of the file
interface MobileProps {
isMobile: boolean;
}

// Styled Components
const PlannerContainer = styled.div<MobileProps>`
padding: 0;
height: ${(props: MobileProps) => (props.isMobile ? 'calc(100% - 105px)' : 'calc(100vh - 65px)')};
background: ${(props: MobileProps) => (props.isMobile ? 'white' : colors.light.grayish.G950)};
overflow-y: auto;
overflow-x: hidden;
overflow-y: ${(props: MobileProps) => (props.isMobile ? 'auto' : 'hidden')};
overflow-x: ${(props: MobileProps) => (props.isMobile ? 'hidden' : 'hidden')};
`;

const LoadingContainer = styled.div`
Expand Down Expand Up @@ -101,19 +99,26 @@ const ItemCounter = styled.span`

const BoardColumnContent = styled.div`
padding: 0.5rem;
padding-bottom: 2.5rem;
overflow-y: auto;
flex: 1;
max-height: calc(100vh - 200px);
min-height: 200px;
& > *:last-child {
margin-bottom: 13rem;
}
&::-webkit-scrollbar {
width: 6px;
width: 3px;
}
&::-webkit-scrollbar-track {
background: ${colors.light.grayish.G900};
background: transparent;
}
&::-webkit-scrollbar-thumb {
background: ${colors.light.grayish.G800};
background: ${colors.light.black90};
border-radius: 3px;
}
`;
Expand Down

0 comments on commit 3574954

Please sign in to comment.