Skip to content

Commit d4aff90

Browse files
committed
Fix layout
1 parent db8bb6a commit d4aff90

2 files changed

Lines changed: 11 additions & 15 deletions

File tree

apps/landing/src/app/test-case/page.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,6 @@ export default async function TestCasePage() {
5151
>
5252
{/* @todo 필터 관련 JSON 및 상태 관련 처리 */}
5353
<TestCaseDisplayBoundary option="filters" value={key}>
54-
<Box
55-
bg="$text"
56-
display={isBut ? 'none' : 'block'}
57-
h="1px"
58-
mx={['16px', null, null, '60px']}
59-
/>
6054
<TestCaseRuleContainer key={key} exception={isBut}>
6155
<VStack gap="20px">
6256
<Flex
@@ -135,7 +129,14 @@ export default async function TestCasePage() {
135129
gap="12px"
136130
justifyContent={[null, null, null, 'space-between']}
137131
>
138-
<Flex gap="10px" overflowX="auto" scrollbarWidth="none" w="100%">
132+
<Flex
133+
gap="10px"
134+
overflowX="auto"
135+
overflowY="visible"
136+
pb="2px"
137+
scrollbarWidth="none"
138+
w="100%"
139+
>
139140
{TEST_CASE_FILTERS.map((filter) => (
140141
<TestCaseFilter key={filter.value} value={filter.value}>
141142
{filter.label}
@@ -175,6 +176,7 @@ export default async function TestCasePage() {
175176
실패한 케이스만 표시하기
176177
</Text>
177178
</Flex>
179+
<Box bg="$text" h="1px" />
178180
</TestCaseFilterContainer>
179181
{cases}
180182
<Box bg="$text" h="1px" mx={['16px', null, null, '60px']} />

apps/landing/src/components/test-case/TestCaseFilterContainer.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
1-
'use client'
2-
31
import { VStack } from '@devup-ui/react'
42

5-
import { useTestCase } from './TestCaseProvider'
6-
73
export function TestCaseFilterContainer({
84
children,
95
}: {
106
children: React.ReactNode
117
}) {
12-
const { options } = useTestCase()
13-
const isList = options.type === 'list'
148
return (
159
<VStack
1610
bg="$background"
1711
gap="12px"
18-
mb={[isList ? '30px' : '40px', null, null, '40px']}
1912
pos="sticky"
13+
pt="10px"
2014
px={['16px', null, null, '60px']}
21-
top="100px"
15+
top={['60px', null, null, '100px']}
2216
>
2317
{children}
2418
</VStack>

0 commit comments

Comments
 (0)