Skip to content

Commit

Permalink
feat: 스크롤 변경 (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssuminii committed Oct 24, 2024
1 parent 71e711d commit 6092545
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const Home: React.FC = () => {
console.log(res.data.posts)
setStudyBoards(res.data.posts)
} catch (error) {
console.log('게시글 가져오기 에러------->', error)
console.log('스터디 게시글 가져오기 에러------->', error)
}
}

Expand Down Expand Up @@ -149,7 +149,7 @@ const Home: React.FC = () => {
<div className="study-posts">
<ul>
{studyBoards.map((data) => (
<Link to={`/postDetail/코딩테스트/@${data.username}/${data.title}`} key={data.id}>
<Link to={`/postDetail/스터디/@${data.username}/${data.title}`} key={data.id}>
<li className="post-list">
<img
src={data.thumbnailUrl !== '' ? data.thumbnailUrl : defaultImage}
Expand Down Expand Up @@ -224,6 +224,17 @@ const PostContainer = styled.div`
}
}
.cote-posts::-webkit-scrollbar,
.study-posts::-webkit-scrollbar {
width: 8px;
}
.cote-posts::-webkit-scrollbar-thumb,
.study-posts::-webkit-scrollbar-thumb {
background-color: ${colors.white};
border-radius: 4px;
}
.study-posts {
padding-right: 60px;
max-height: 80%;
Expand Down

0 comments on commit 6092545

Please sign in to comment.