diff --git a/packages/web/src/app/[domain]/browse/[...path]/codePreview.tsx b/packages/web/src/app/[domain]/browse/[...path]/codePreview.tsx
index 9a7dbdb4..8f6243c7 100644
--- a/packages/web/src/app/[domain]/browse/[...path]/codePreview.tsx
+++ b/packages/web/src/app/[domain]/browse/[...path]/codePreview.tsx
@@ -4,11 +4,11 @@ import { ScrollArea } from "@/components/ui/scroll-area";
import { useKeymapExtension } from "@/hooks/useKeymapExtension";
import { useNonEmptyQueryParam } from "@/hooks/useNonEmptyQueryParam";
import { useSyntaxHighlightingExtension } from "@/hooks/useSyntaxHighlightingExtension";
-import { useThemeNormalized } from "@/hooks/useThemeNormalized";
import { search } from "@codemirror/search";
import CodeMirror, { Decoration, DecorationSet, EditorSelection, EditorView, ReactCodeMirrorRef, SelectionRange, StateField, ViewUpdate } from "@uiw/react-codemirror";
import { useEffect, useMemo, useRef, useState } from "react";
import { EditorContextMenu } from "../../components/editorContextMenu";
+import { useCodeMirrorTheme } from "@/hooks/useCodeMirrorTheme";
interface CodePreviewProps {
path: string;
@@ -119,7 +119,7 @@ export const CodePreview = ({
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [highlightRange, isEditorCreated]);
- const { theme } = useThemeNormalized();
+ const theme = useCodeMirrorTheme();
return (
{/* hack since to make the @ symbol look more centered with the text */} @@ -64,7 +63,9 @@ export const FileHeader = ({
)} · -Loading...
+{`[${searchDurationMs} ms] Found ${numMatches} matches in ${fileMatches.length} ${fileMatches.length > 1 ? 'files' : 'file'}`}
- ) : ( -No results
- ) - } - {isMoreResultsButtonVisible && ( -{`[${searchDurationMs} ms] Found ${numMatches} matches in ${fileMatches.length} ${fileMatches.length > 1 ? 'files' : 'file'}`}
+ ) : ( +No results
+ ) + } + {isMoreResultsButtonVisible && ( +