Skip to content

Commit

Permalink
fix(mindset): improve layout responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
aliraza556 committed Dec 26, 2024
1 parent 8c7d331 commit ed422aa
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ const Wrapper = styled(Flex)`
padding: 24px;
overflow-y: auto;
flex: 1 1 100%;
max-height: 60%;
`

const TranscriptWrapper = styled(Flex)`
Expand Down
2 changes: 2 additions & 0 deletions src/components/mindset/components/Sidebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ const Wrapper = styled(Flex)(({ theme }) => ({
padding: '0 20px 0 20px',
background: 'transparent',
width: '100%',
height: 'calc(100vh - 180px)',
overflow: 'auto',

[theme.breakpoints.up('sm')]: {
width: MENU_WIDTH,
Expand Down
20 changes: 16 additions & 4 deletions src/components/mindset/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ export const MindSet = () => {
}, [dataInitial])

return (
<>
<Flex direction="row" style={{ height: '82%' }}>
<MainContainer>
<ContentWrapper direction="row">
{selectedEpisodeId ? (
<>
<Flex>
Expand All @@ -277,14 +277,26 @@ export const MindSet = () => {
) : (
<LandingPage />
)}
</Flex>
</ContentWrapper>
<PlayerControlWrapper>
<PlayerControl markers={markers} />
</PlayerControlWrapper>
</>
</MainContainer>
)
}

const MainContainer = styled.div`
display: flex;
flex-direction: column;
height: 100vh;
width: 100%;
`

const ContentWrapper = styled(Flex)`
flex: 1;
overflow: hidden;
`

const ContentContainer = styled(Flex)`
flex-basis: 100%;
flex-shrink: 1;
Expand Down

0 comments on commit ed422aa

Please sign in to comment.