diff --git a/app/components/chat.tsx b/app/components/chat.tsx
index 405fdb335..d0d1cbc8a 100644
--- a/app/components/chat.tsx
+++ b/app/components/chat.tsx
@@ -759,6 +759,7 @@ function _Chat() {
const session = chatStore.currentSession();
const config = useAppConfig();
const fontSize = config.fontSize;
+ const fontFamily = config.fontFamily;
const [showExport, setShowExport] = useState(false);
@@ -1544,6 +1545,7 @@ function _Chat() {
// setUserInput(getMessageTextContent(message));
// }}
fontSize={fontSize}
+ fontFamily={fontFamily}
parentRef={scrollRef}
defaultShow={i >= messages.length - 6}
/>
@@ -1776,6 +1778,7 @@ function _Chat() {
autoFocus={autoFocus}
style={{
fontSize: config.fontSize,
+ fontFamily: config.fontFamily,
}}
/>
{attachImages.length != 0 && (
diff --git a/app/components/exporter.tsx b/app/components/exporter.tsx
index 948807d4c..e91239221 100644
--- a/app/components/exporter.tsx
+++ b/app/components/exporter.tsx
@@ -583,6 +583,7 @@ export function ImagePreviewer(props: {
{getMessageImages(m).length == 1 && (
diff --git a/app/components/markdown.tsx b/app/components/markdown.tsx
index 0f6a37803..9929342a1 100644
--- a/app/components/markdown.tsx
+++ b/app/components/markdown.tsx
@@ -232,6 +232,7 @@ export function Markdown(
content: string;
loading?: boolean;
fontSize?: number;
+ fontFamily?: string;
parentRef?: RefObject;
defaultShow?: boolean;
} & React.DOMAttributes,
@@ -243,6 +244,7 @@ export function Markdown(
className="markdown-body"
style={{
fontSize: `${props.fontSize ?? 14}px`,
+ fontFamily: props.fontFamily || "inherit",
}}
ref={mdRef}
onContextMenu={props.onContextMenu}
diff --git a/app/components/settings.tsx b/app/components/settings.tsx
index f9abd7213..7a4626a73 100644
--- a/app/components/settings.tsx
+++ b/app/components/settings.tsx
@@ -71,7 +71,7 @@ import {
} from "../constant";
import { Prompt, SearchService, usePromptStore } from "../store/prompt";
import { ErrorBoundary } from "./error";
-// import { InputRange } from "./input-range";
+import { InputRange } from "./input-range";
import { useNavigate } from "react-router-dom";
import { Avatar, AvatarPicker } from "./emoji";
import { getClientConfig } from "../config/client";
@@ -1297,24 +1297,40 @@ export function Settings() {
{/* */}
{/**/}
- {/**/}
- {/* */}
- {/* updateConfig(*/}
- {/* (config) =>*/}
- {/* (config.fontSize = Number.parseInt(e.currentTarget.value)),*/}
- {/* )*/}
- {/* }*/}
- {/* >*/}
- {/**/}
+
+
+ updateConfig(
+ (config) =>
+ (config.fontSize = Number.parseInt(e.currentTarget.value)),
+ )
+ }
+ >
+
+
+
+
+ updateConfig(
+ (config) => (config.fontFamily = e.currentTarget.value),
+ )
+ }
+ >
+
{/*