Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Update text

Liang Dingeeaced603623
diff --git a/app/src/layout/util.ts b/app/src/layout/util.ts
index 453c946cbc..954ef20bc4 100644
--- a/app/src/layout/util.ts
+++ b/app/src/layout/util.ts
@@ -35,7 +35,7 @@ import {getIdZoomInByPath} from "../util/pathName";
import {openHistory} from "../history/history";
import {Custom} from "./dock/Custom";
import {newCardModel} from "../card/newCardTab";
-import { openRecentDocs } from "../business/openRecentDocs";
+import {openRecentDocs} from "../business/openRecentDocs";
export const setPanelFocus = (element: Element) => {
if (element.classList.contains("layout__tab--active") || element.classList.contains("layout__wnd--active")) {
@@ -799,8 +799,6 @@ export const newCenterEmptyTab = () => {
</div>
<div class="b3-label__text">${window.siyuan.languages.slogan}</div>
</div>
- <h1>${window.siyuan.languages.noOpenFile}</h1>
- <div class="fn__hr"></div>
<div class="fn__hr"></div>
<div class="b3-list-item" id="editorEmptySearch">
<svg class="b3-list-item__graphic"><use xlink:href="#iconSearch"></use></svg>
diff --git a/app/src/mobile/util/setEmpty.ts b/app/src/mobile/util/setEmpty.ts
index d96c4ee5e7..625359cf0e 100644
--- a/app/src/mobile/util/setEmpty.ts
+++ b/app/src/mobile/util/setEmpty.ts
@@ -14,8 +14,7 @@ export const setEmpty = () => {
if (emptyElement.innerHTML !== "") {
return;
}
- emptyElement.innerHTML = `<h1 style="width: 200px">${window.siyuan.languages.noOpenFile}</h1>
-<div class="fn__hr--b"></div>
+ emptyElement.innerHTML = `
<div id="emptySearch" class="b3-list-item">
<svg class="b3-list-item__graphic"><use xlink:href="#iconSearch"></use></svg><span class="b3-list-item__text">${window.siyuan.languages.search}</span>
</div>