Skip to content

Commit

Permalink
fix: 강의 목록 깨져보이는 문제 수정, 스크롤바 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
kangju2000 committed Oct 24, 2023
1 parent 7315e8c commit c225a0a
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions src/components/ContentModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,21 @@ const ContentModal = ({ isOpen, onClose }: Props) => {
</ModalHeader>
<Divider m="0" />
<ModalBody display="flex" p="0" overflow="hidden">
<Stack spacing="16px" w="200px" p="24px" overflowY="scroll">
<Stack
spacing="16px"
w="200px"
p="24px"
overflow="scroll"
sx={{
'::-webkit-scrollbar': {
display: 'none',
},
}}
>
{courseList.map(course => (
<Text
key={course.id}
flexShrink="0"
fontSize="14px"
fontWeight={selectedCourseId === course.id ? '600' : '400'}
_light={{ color: selectedCourseId === course.id ? 'blue.600' : 'gray.600' }}
Expand All @@ -92,7 +103,17 @@ const ContentModal = ({ isOpen, onClose }: Props) => {

<Divider orientation="vertical" m="0" />

<Box flex="1" overflowY="scroll" px="24px" h="100%">
<Box
flex="1"
overflowY="scroll"
px="24px"
h="100%"
sx={{
'::-webkit-scrollbar': {
display: 'none',
},
}}
>
<Tabs isLazy={true}>
<TabList
position="sticky"
Expand Down Expand Up @@ -172,7 +193,7 @@ const ContentModal = ({ isOpen, onClose }: Props) => {

<Divider m="0" />

<ModalFooter h="60px" px="24px">
<ModalFooter h="60px" px="24px" userSelect="none">
<PopoverOptions
triggerElement={
<Center cursor="pointer">
Expand Down

0 comments on commit c225a0a

Please sign in to comment.