From 8ec37bc7f1193d1e9f7696a1df46e16d72f8e182 Mon Sep 17 00:00:00 2001
From: xuzhenjun <412530435@qq.com>
Date: Tue, 11 Apr 2023 00:57:50 +0800
Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/components/home.tsx | 29 ++++++++++-------------------
app/locales/cn.ts | 5 ++++-
2 files changed, 14 insertions(+), 20 deletions(-)
diff --git a/app/components/home.tsx b/app/components/home.tsx
index 78bb643b5..4d7d96aaa 100644
--- a/app/components/home.tsx
+++ b/app/components/home.tsx
@@ -34,9 +34,9 @@ export function Loading(props: { noLogo?: boolean }) {
);
}
-const Settings = dynamic(async () => (await import("./settings")).Settings, {
- loading: () => ,
-});
+// const Settings = dynamic(async () => (await import("./settings")).Settings, {
+// loading: () => ,
+// });
const ChatList = dynamic(async () => (await import("./chat-list")).ChatList, {
loading: () => ,
@@ -146,7 +146,7 @@ function _Home() {
onClick={chatStore.deleteSession}
/>
-
+ {/*
}
onClick={() => {
@@ -155,7 +155,7 @@ function _Home() {
}}
shadow
/>
-
+
*/}
- {openSettings ? (
- {
- setOpenSettings(false);
- setShowSideBar(true);
- }}
- />
- ) : (
- setShowSideBar(true)}
- sideBarShowing={showSideBar}
- />
- )}
+ setShowSideBar(true)}
+ sideBarShowing={showSideBar}
+ />
);
diff --git a/app/locales/cn.ts b/app/locales/cn.ts
index ecd7818aa..49cd407e1 100644
--- a/app/locales/cn.ts
+++ b/app/locales/cn.ts
@@ -1,5 +1,5 @@
import { SubmitKey } from "../store/app";
-
+import { isMobileScreen } from "../utils";
const cn = {
WIP: "该功能仍在开发中……",
Error: {
@@ -25,6 +25,9 @@ const cn = {
if (submitKey === String(SubmitKey.Enter)) {
inputHints += ",Shift + Enter 换行";
}
+ if (isMobileScreen()) {
+ return "与ta对话吧";
+ }
return inputHints + ",/ 触发补全提示词咒语";
},
Send: "发送",