Skip to content

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

:art: fix https://ld246.com/article/1700484244170

Vanessa65fd66699535
diff --git a/app/src/assets/scss/component/_tooltips.scss b/app/src/assets/scss/component/_tooltips.scss
index 9055cac013..bf30ab97f8 100644
--- a/app/src/assets/scss/component/_tooltips.scss
+++ b/app/src/assets/scss/component/_tooltips.scss
@@ -18,7 +18,7 @@
max-height: 90vh;
overflow: auto;
box-sizing: border-box;
- white-space: pre;
+ white-space: break-spaces;
a {
color: var(--b3-theme-secondary);
diff --git a/app/src/block/popover.ts b/app/src/block/popover.ts
index 89dbcf9421..d8e1af8877 100644
--- a/app/src/block/popover.ts
+++ b/app/src/block/popover.ts
@@ -34,7 +34,7 @@ export const initBlockPopover = (app: App) => {
}
}
if (!tip) {
- tip = aElement.getAttribute("data-href");
+ tip = aElement.getAttribute("data-href").substring(0, Constants.SIZE_TITLE);
const title = aElement.getAttribute("data-title");
if (title) {
tip += "<br>" + title;