Skip to content

Commit 0c86668

Browse files
authored
feat(fe): custom scroll bar (#191)
1 parent b73a857 commit 0c86668

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

apps/client/src/components/qna/ChattingList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function ChattingList() {
8383
</div>
8484

8585
<div
86-
className='inline-flex h-full w-full flex-col items-start justify-start overflow-y-auto break-words p-2.5 scrollbar-hide'
86+
className='inline-flex h-full w-full flex-col items-start justify-start overflow-y-auto overflow-x-hidden break-words p-2.5'
8787
ref={messagesEndRef}
8888
>
8989
{chatting.map((chat) => (

apps/client/src/components/qna/QuestionDetail.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function QuestionDetail() {
4848
)}
4949
</div>
5050

51-
<div className='inline-flex h-full w-full flex-col items-start justify-start gap-4 overflow-y-auto pb-4 scrollbar-hide'>
51+
<div className='inline-flex h-full w-full flex-col items-start justify-start gap-4 overflow-y-auto pb-4'>
5252
<div className='flex h-fit flex-col items-start justify-center gap-2.5 self-stretch border-b border-gray-200/50 px-12 py-4'>
5353
<Markdown className='prose prose-stone flex w-full flex-col gap-3 self-stretch text-base font-medium leading-normal text-black prose-img:rounded-md'>
5454
{question.body}

apps/client/src/components/qna/QuestionList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function QuestionList() {
5151
</Button>
5252
)}
5353
</div>
54-
<motion.div className='inline-flex h-full w-full flex-col items-start justify-start gap-4 overflow-y-auto px-8 py-4 scrollbar-hide'>
54+
<motion.div className='inline-flex h-full w-full flex-col items-start justify-start gap-4 overflow-y-auto px-8 py-4'>
5555
{sections.map((section) => (
5656
<QuestionSection
5757
key={section.title}

apps/client/src/index.css

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@
88
margin: 0;
99
}
1010

11-
* {
12-
user-select: none;
11+
::-webkit-scrollbar {
12+
width: 8px;
13+
}
14+
15+
::-webkit-scrollbar-track {
16+
background: #e5e7eb;
17+
border-radius: 4px;
18+
}
19+
20+
::-webkit-scrollbar-thumb {
21+
background: #a5b4fc;
22+
border-radius: 4px;
23+
}
24+
25+
::-webkit-scrollbar-thumb:hover {
26+
background: #6366f1;
1327
}

apps/client/src/pages/MyPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function MyPage() {
1111

1212
return (
1313
<div className='inline-flex h-full w-full items-center justify-center gap-4 overflow-hidden px-4 py-4 md:max-w-[1194px]'>
14-
<div className='inline-flex shrink grow basis-0 flex-col items-center justify-start gap-4 self-stretch rounded-lg bg-white shadow'>
14+
<div className='inline-flex shrink grow basis-0 flex-col items-center justify-start self-stretch rounded-lg bg-white shadow'>
1515
<div className='inline-flex h-[54px] items-center justify-between self-stretch border-b border-gray-200 px-8 py-2'>
1616
<div className='text-lg font-medium text-black'>참여한 세션 기록</div>
1717
<div className='rounded-md px-3 py-2' />

0 commit comments

Comments
 (0)