Skip to content

Commit 30b8101

Browse files
committed
Fix Search style on 404 page
1 parent 3b1724a commit 30b8101

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

src/components/404-page/image.webp

418 KB
Loading

src/components/navbar/navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export function Navbar({ items }: NavbarProps): ReactElement {
155155

156156
<Flexsearch
157157
className={
158-
"block select-none p-8 text-sm max-md:hidden [&>input::placeholder]:text-neu-700 [&>input]:bg-neu-0/[.55] [&>input]:text-neu-900"
158+
"block select-none text-sm max-md:hidden [&>input::placeholder]:text-neu-700 [&>input]:bg-neu-0/[.55] [&>input]:text-neu-900"
159159
}
160160
setMenu={setMenu}
161161
/>

src/components/search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function Search({
8585
const icon = mounted && !focused && (
8686
<kbd
8787
className={clsx(
88-
"_absolute _my-1.5 _select-none ltr:_right-1.5 rtl:_left-1.5",
88+
"_my-1.5 _select-none rtl:_left-1.5 absolute right-1.5",
8989
"_h-5 _rounded _bg-white _px-1.5 _font-mono _text-[11px] _font-medium _text-gray-500",
9090
"_border dark:_border-gray-100/20 dark:_bg-black/50",
9191
"contrast-more:_border-current contrast-more:_text-current contrast-more:dark:_border-current",

src/components/sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ export function Sidebar({
434434
>
435435
<div className="px-4 pt-4 md:hidden">
436436
<Flexsearch
437-
className="block select-none p-8 text-sm text-neu-500"
437+
className="block select-none text-sm text-neu-500"
438438
setMenu={setMenu}
439439
/>
440440
</div>

src/globals.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
--foreground-rgb: 0, 0, 0;
88
--background-start-rgb: 214, 219, 220;
99
--background-end-rgb: 255, 255, 255;
10+
11+
--nextra-navbar-height: 64px;
1012
}
1113

1214
@media (prefers-color-scheme: dark) {

0 commit comments

Comments
 (0)