This commit is contained in:
GH Action - Upstream Sync 2023-04-05 12:41:10 +00:00
commit b6513c9ae8
3 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
import { useDebouncedCallback } from "use-debounce"; import { useDebouncedCallback } from "use-debounce";
import { useState, useRef, useEffect, useLayoutEffect } from "react"; import { memo, useState, useRef, useEffect, useLayoutEffect } from "react";
import SendWhiteIcon from "../icons/send-white.svg"; import SendWhiteIcon from "../icons/send-white.svg";
import BrainIcon from "../icons/brain.svg"; import BrainIcon from "../icons/brain.svg";
@ -33,7 +33,7 @@ import chatStyle from "./chat.module.scss";
import { Modal, showModal, showToast } from "./ui-lib"; import { Modal, showModal, showToast } from "./ui-lib";
const Markdown = dynamic(async () => (await import("./markdown")).Markdown, { const Markdown = dynamic(async () => memo((await import("./markdown")).Markdown), {
loading: () => <LoadingIcon />, loading: () => <LoadingIcon />,
}); });

View File

@ -113,7 +113,6 @@ export function Settings(props: { closeSettings: () => void }) {
useEffect(() => { useEffect(() => {
checkUpdate(); checkUpdate();
checkUsage();
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, []); }, []);

View File

@ -10,6 +10,7 @@
.window-header-title { .window-header-title {
max-width: calc(100% - 100px); max-width: calc(100% - 100px);
overflow: hidden;
.window-header-main-title { .window-header-main-title {
font-size: 20px; font-size: 20px;