Skip to content

Commit 566d5c5

Browse files
committed
more fixes
1 parent 4aaf68d commit 566d5c5

File tree

3 files changed

+16
-11
lines changed

3 files changed

+16
-11
lines changed

src/app/dash/layout.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ export default function RootLayout({children}: Props) {
5353
<StyleSheet/>
5454
</head>
5555
<body className={inter.className}>
56-
<Common.Navbar />
5756
<Container>
5857
<Dash.Sidebar />
5958
<Common.Box css={{

src/components/common/SearchDocumentation.tsx

+9-6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import * as Form from '@/components/common/form';
88
const SearchWrap = styled('div', {
99
position: 'relative',
1010
flexGrow: 1,
11+
margin: '0 16px',
1112

1213
'@media (max-width: 512px)': {
1314
width: '100%',
@@ -17,16 +18,18 @@ const SearchWrap = styled('div', {
1718
const SearchResults = styled('div', {
1819
position: 'absolute',
1920
top: '49px',
20-
left: '16px',
2121
borderBottomLeftRadius: theme.radii.medium,
2222
borderBottomRightRadius: theme.radii.medium,
2323
background: theme.colors.neutral100,
2424
border: '1px solid',
2525
borderColor: theme.colors.neutral300,
26-
maxWidth: '512px',
27-
width: '100vw',
26+
width: '100%',
2827
borderTopColor: theme.colors.neutral500,
2928

29+
'@media (min-width: 600px)': {
30+
maxWidth: '512px',
31+
},
32+
3033
'& > a': {
3134
display: 'flex',
3235
justifyContent: 'space-between',
@@ -60,9 +63,9 @@ export function SearchDocumentation() {
6063
<SearchWrap>
6164
{display &&
6265
<SearchResults>
63-
<Link href='/'>How to do x cool thing with Hookla</Link>
64-
<Link href='/'>How to do x cool thing with Hookla</Link>
65-
<Link href='/'>How to do x cool thing with Hookla</Link>
66+
<Link href='/'>Result</Link>
67+
<Link href='/'>Result</Link>
68+
<Link href='/'>Result</Link>
6669
</SearchResults>
6770
}
6871
<Form.Search placeholder='Search documentation' type='search' onFocus={() => setDisplay(true)} onBlur={() => setDisplay(false)} />

src/components/common/form/Search.tsx

+7-4
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@ export const Search = styled(Input, {
77
textOverflow: 'ellipsis',
88
fontSize: theme.fontSizes.xsmall,
99
borderColor: theme.colors.neutral500,
10-
margin: '0 auto 0 16px',
1110
backgroundImage: 'url(/search.svg)',
1211
backgroundRepeat: 'no-repeat',
1312
backgroundPosition: '16px center',
1413
paddingLeft: '40px',
15-
maxWidth: '156px',
1614
width: '100%',
1715

16+
'&:focus': {
17+
borderBottomLeftRadius: 0,
18+
borderBottomRightRadius: 0,
19+
},
20+
1821
'@media (min-width: 600px)': {
22+
maxWidth: '156px',
23+
1924
'&:focus': {
2025
maxWidth: '512px !important',
21-
borderBottomLeftRadius: 0,
22-
borderBottomRightRadius: 0,
2326
},
2427
},
2528

0 commit comments

Comments
 (0)