Skip to content

Commit 6834e62

Browse files
committed
Fix font
1 parent c69c8a7 commit 6834e62

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

chat/src/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
--color-background: var(--background);
88
--color-foreground: var(--foreground);
99
--font-sans: var(--font-geist-sans);
10-
--font-mono: var(--font-geist-mono);
10+
--font-mono: "Menlo", "DejaVu Sans Mono", "Consolas", "Courier New", monospace;
1111
--color-sidebar-ring: var(--sidebar-ring);
1212
--color-sidebar-border: var(--sidebar-border);
1313
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);

chat/src/app/layout.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { Metadata } from "next";
2-
import { Geist, Geist_Mono } from "next/font/google";
2+
import { Geist } from "next/font/google";
33
import "./globals.css";
44
import { Toaster } from "@/components/ui/sonner";
55
import { ThemeProvider } from "@/components/theme-provider";
@@ -9,11 +9,6 @@ const geistSans = Geist({
99
subsets: ["latin"],
1010
});
1111

12-
const geistMono = Geist_Mono({
13-
variable: "--font-geist-mono",
14-
subsets: ["latin"],
15-
});
16-
1712
export const metadata: Metadata = {
1813
title: "AgentAPI Chat",
1914
description: "A ChatGPT-like interface for AgentAPI",
@@ -26,9 +21,7 @@ export default function RootLayout({
2621
}>) {
2722
return (
2823
<html lang="en" suppressHydrationWarning>
29-
<body
30-
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
31-
>
24+
<body className={`${geistSans.variable} antialiased`}>
3225
<ThemeProvider
3326
attribute="class"
3427
defaultTheme="system"

chat/src/components/MessageList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default function MessageList({
8080
className={`inline-block rounded-lg ${
8181
message.role === "user"
8282
? "bg-accent-foreground rounded-lg max-w-[90%] px-4 py-3 text-accent"
83-
: "max-w-[90%]"
83+
: "max-w-[80ch]"
8484
}`}
8585
>
8686
<div

0 commit comments

Comments
 (0)