Skip to content

Commit

Permalink
Merge pull request #135 from TheUpperPart/Design/#133
Browse files Browse the repository at this point in the history
Design: 채널바 height 수정
  • Loading branch information
navyjeongs authored Sep 16, 2023
2 parents dd5760e + 24a2b08 commit 99a0c31
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/Sidebar/ChannelBar/ChannelBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const ChannelbarContainer = styled.div`
padding: 2rem 0;
width: 10rem;
height: 100vh;
background-color: #141c24;
Expand Down
19 changes: 18 additions & 1 deletion src/components/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const Layout = ({ children }: PropsWithChildren) => {
</SidebarWrapper>
<Wrapper>
<Header />
<main>{children}</main>
<Main>{children}</Main>
</Wrapper>
</CommonLayout>
</>
Expand All @@ -52,10 +52,27 @@ const CommonLayout = styled.div`

const Wrapper = styled.div`
width: 100%;
height: 100vh;
`;

const SidebarWrapper = styled.div`
flex: 0 0;
`;

const Main = styled.main`
overflow-y: auto;
::-webkit-scrollbar {
width: 1rem;
}
::-webkit-scrollbar-thumb {
background-color: #202b37;
border-radius: 1rem;
}
::-webkit-scrollbar-track {
background-color: #344051;
border-radius: 1rem;
}
`;

export default Layout;
2 changes: 1 addition & 1 deletion src/pages/make-channel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const fadeIn = keyframes`

const Container = styled.div`
width: 100%;
min-height: calc(100vh - 5.5rem);
height: calc(100vh - 5.5rem);
position: relative;
`;

Expand Down

0 comments on commit 99a0c31

Please sign in to comment.