Skip to content

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

:art: https://ld246.com/article/1728436915565

Vanessa4670092d22b5
diff --git a/app/src/assets/scss/business/_emojis.scss b/app/src/assets/scss/business/_emojis.scss
index 78371e91f6..eac5ceef7c 100644
--- a/app/src/assets/scss/business/_emojis.scss
+++ b/app/src/assets/scss/business/_emojis.scss
@@ -60,6 +60,7 @@
margin: 1px;
overflow: hidden;
border-radius: var(--b3-border-radius);
+ min-width: 32px;
img, svg {
height: 24px;
diff --git a/app/src/protyle/util/compatibility.ts b/app/src/protyle/util/compatibility.ts
index 9223a1d245..e0f641a9af 100644
--- a/app/src/protyle/util/compatibility.ts
+++ b/app/src/protyle/util/compatibility.ts
@@ -8,8 +8,10 @@ export const openByMobile = (uri: string) => {
}
if (isInIOS()) {
if (uri.startsWith("assets/")) {
- window.webkit.messageHandlers.openLink.postMessage(location.origin + "/" + uri);
+ // iOS 16.7 之前的版本,uri 需要 encodeURIComponent
+ window.webkit.messageHandlers.openLink.postMessage(location.origin + "/assets/" + encodeURIComponent(uri.replace("assets/", "")));
} else if (uri.startsWith("/")) {
+ // 导出 zip 返回的是已经 encode 过的,因此不能再 encode
window.webkit.messageHandlers.openLink.postMessage(location.origin + uri);
} else {
try {