diff --git a/islands/KMenu.tsx b/islands/KMenu.tsx
index 5b8f12d..16c7e39 100644
--- a/islands/KMenu.tsx
+++ b/islands/KMenu.tsx
@@ -127,6 +127,9 @@ export const KMenu = (
if (ev.key === "Enter") {
activateEntry(entries[activeIndex.value]);
+ if (input.current) {
+ input.current.value = "";
+ }
}
if (ev.key === "ArrowUp") {
diff --git a/routes/_app.tsx b/routes/_app.tsx
index abb2b2f..9d564ff 100644
--- a/routes/_app.tsx
+++ b/routes/_app.tsx
@@ -2,11 +2,13 @@ import { PageProps } from "$fresh/server.ts";
import { Head } from "$fresh/runtime.ts";
export default function App({ Component }: PageProps) {
- const css = Deno.readTextFileSync("./static/global.css").replace("\n", "");
+ const globalCss = Deno
+ .readTextFileSync("./static/global.css")
+ .replaceAll("\n", "");
return (
<>
-
+
-
-
-
-
+
+ app
+
>
);
}
diff --git a/routes/_layout.tsx b/routes/_layout.tsx
index 851ce7c..952b946 100644
--- a/routes/_layout.tsx
+++ b/routes/_layout.tsx
@@ -1,7 +1,5 @@
import { PageProps } from "$fresh/server.ts";
import { resources } from "@lib/resources.ts";
-import { CSS, KATEX_CSS } from "gfm";
-import { Head } from "$fresh/runtime.ts";
import { Emoji } from "@components/Emoji.tsx";
export default function MyLayout({ Component }: PageProps) {
@@ -10,10 +8,6 @@ export default function MyLayout({ Component }: PageProps) {
class="md:grid mx-auto"
style={{ gridTemplateColumns: "200px 1fr", maxWidth: "1024px" }}
>
-
-
-
-