From 3f1e58421222977a4ef3e1b11ae44ca6b58e749a Mon Sep 17 00:00:00 2001 From: song_xiao_lin Date: Thu, 16 May 2024 16:07:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/src/components/layout/FuncDomain.tsx | 19 ++++++------------- .../components/layout/funcDomain.module.scss | 8 +++++++- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/app/renderer/src/main/src/components/layout/FuncDomain.tsx b/app/renderer/src/main/src/components/layout/FuncDomain.tsx index 708d11078f..e4209e2198 100644 --- a/app/renderer/src/main/src/components/layout/FuncDomain.tsx +++ b/app/renderer/src/main/src/components/layout/FuncDomain.tsx @@ -1268,19 +1268,9 @@ const UIOpUpdateYaklang: React.FC = React.memo((props) => {
- {/* 等使用更新内容时,下面"当前版本"-div需要被删除 */} -
+
{`Yaklang ${isUpdate ? lastVersion : version}`}
-
- - {`当前版本: ${version}`} - -
+
{`当前版本: ${version}`}
{/*
2022-09-29
*/}
@@ -1382,7 +1372,6 @@ const MoreYaklangVersion: React.FC = React.memo((props) ipcRenderer .invoke("fetch-yaklang-version-list") .then((data: string) => { - setLoading(false) const arr = data.split("\n").filter((v) => v) let devPrefix: string[] = [] let noPrefix: string[] = [] @@ -1398,6 +1387,9 @@ const MoreYaklangVersion: React.FC = React.memo((props) .catch((err) => { yakitNotify("error", `获取更多版本失败:${err}`) }) + .finally(() => { + setLoading(false) + }) } }, [inViewport]) @@ -1803,6 +1795,7 @@ const UIOpNotice: React.FC = React.memo((props) => { }, [isEngineLink]) const onDownload = useMemoizedFn((type: "yakit" | "yaklang") => { + setShow(false) emiter.emit("activeUpdateYakitOrYaklang", type) }) diff --git a/app/renderer/src/main/src/components/layout/funcDomain.module.scss b/app/renderer/src/main/src/components/layout/funcDomain.module.scss index e722fb35cf..4233ce46be 100644 --- a/app/renderer/src/main/src/components/layout/funcDomain.module.scss +++ b/app/renderer/src/main/src/components/layout/funcDomain.module.scss @@ -408,6 +408,9 @@ font-size: 12px; line-height: 16px; color: var(--yakit-header-color); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } .update-simple-title { height: 28px; @@ -421,6 +424,9 @@ font-size: 11px; line-height: 12px; color: var(--yakit-helper-text-color); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; } } .header-btn { @@ -428,7 +434,7 @@ display: flex; justify-content: right; align-items: center; - gap: 16px; + gap: 12px; font-size: 12px; color: var(--yakit-disable-text-color);