Skip to content

Commit

Permalink
[Fix]좌측 주식 목록 창 레이아웃 수정
Browse files Browse the repository at this point in the history
주식 목록의 높이를 반응형으로 수정
스크롤이 어느 해상도에서든 프레임을 초과 하지 않도록 수정
Issues #19
  • Loading branch information
김병현 authored and 김병현 committed Sep 16, 2023
1 parent cdf417f commit caaa8f6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/src/components/EntireList/EntireList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ const Divider2 = styled.div`
`;

const StockList = styled.div`
width: 100%;
height: 100%;
width: 100%;
overflow-y: auto; /* 세로 스크롤을 활성화합니다 */
&::-webkit-scrollbar {
Expand Down
11 changes: 8 additions & 3 deletions client/src/components/HoldingList/HoldingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ type WatchListProps = {
};

const WatchListContainer = styled.div`
height: calc(100vh - 53px);
display: flex;
flex-direction: column;
align-items: flex-start;
Expand Down Expand Up @@ -97,7 +98,11 @@ const Divider2 = styled.div`


const StockList = styled.div`
width: 90%;
max-height: 800px;
overflow-y: auto;
height: 100%;
width: 100%;
overflow-y: auto; /* 세로 스크롤을 활성화합니다 */
&::-webkit-scrollbar {
display: none;
}
`;
9 changes: 7 additions & 2 deletions client/src/components/watchlist/WatchList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ type WatchListProps = {

// WatchList 컴포넌트에 대한 스타일드 컴포넌트 정의
const WatchListContainer = styled.div`
height: calc(100vh - 53px);
display: flex;
flex-direction: column;
align-items: flex-start;
Expand All @@ -105,9 +106,13 @@ const Divider2 = styled.div`
`;

const StockList = styled.div`
width: 90%;
max-height: 800px; /* 스크롤이 발생할 최대 높이를 지정하세요 */
height: 100%;
width: 100%;
overflow-y: auto; /* 세로 스크롤을 활성화합니다 */
&::-webkit-scrollbar {
display: none;
}
`;

export default WatchList;

0 comments on commit caaa8f6

Please sign in to comment.