From 7f4d9b56a80705fef75a38e28e35428c71c9a898 Mon Sep 17 00:00:00 2001
From: Jeffrey Chen <78434827+TCOTC@users.noreply.github.com>
Date: Wed, 8 Oct 2025 23:39:14 +0800
Subject: [PATCH 1/3] :art: Improve block memo display (#16025)
fix https://github.com/siyuan-note/siyuan/issues/12747 04
---
app/src/assets/scss/protyle/_wysiwyg.scss | 14 ++++++++++----
app/src/protyle/header/Title.ts | 2 +-
app/src/protyle/wysiwyg/transaction.ts | 2 +-
3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/app/src/assets/scss/protyle/_wysiwyg.scss b/app/src/assets/scss/protyle/_wysiwyg.scss
index b556971b4..bc488b829 100644
--- a/app/src/assets/scss/protyle/_wysiwyg.scss
+++ b/app/src/assets/scss/protyle/_wysiwyg.scss
@@ -604,10 +604,16 @@
&--attr .protyle-attr {
opacity: 1;
- & > div:not(.protyle-attr--memo):not(.protyle-attr--refcount) {
- cursor: pointer;
- @include mixin.text-clamp(1);
- max-width: 25vw;
+ & > div {
+ &.protyle-attr--memo {
+ cursor: pointer;
+ }
+
+ &:not(.protyle-attr--memo):not(.protyle-attr--refcount) {
+ cursor: pointer;
+ @include mixin.text-clamp(1);
+ max-width: 25vw;
+ }
}
}
diff --git a/app/src/protyle/header/Title.ts b/app/src/protyle/header/Title.ts
index 87f913f40..375924b36 100644
--- a/app/src/protyle/header/Title.ts
+++ b/app/src/protyle/header/Title.ts
@@ -381,7 +381,7 @@ export class Title {
nodeAttrHTML += `
${Lute.EscapeHTMLStr(response.data.ial.alias)}
`;
}
if (response.data.ial.memo) {
- nodeAttrHTML += ``;
+ nodeAttrHTML += ``;
}
if (response.data.ial["custom-avs"]) {
let avTitle = "";
diff --git a/app/src/protyle/wysiwyg/transaction.ts b/app/src/protyle/wysiwyg/transaction.ts
index 27d0376bf..b25ad8b4f 100644
--- a/app/src/protyle/wysiwyg/transaction.ts
+++ b/app/src/protyle/wysiwyg/transaction.ts
@@ -540,7 +540,7 @@ export const onTransaction = (protyle: IProtyle, operation: IOperation, isUndo:
} else if (key === "alias") {
aliasHTML = `${escapeHTML}
`;
} else if (key === "memo") {
- memoHTML = ``;
+ memoHTML = ``;
} else if (key === "custom-avs" && data.new["av-names"]) {
avHTML = `${data.new["av-names"]}
`;
}
From a4d2f00298a128eff23c4e94a49c83991c12b30d Mon Sep 17 00:00:00 2001
From: Daniel <845765@qq.com>
Date: Thu, 9 Oct 2025 11:16:08 +0800
Subject: [PATCH 2/3] :bug: https://github.com/siyuan-note/siyuan/issues/16033
Signed-off-by: Daniel <845765@qq.com>
---
kernel/av/value.go | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/kernel/av/value.go b/kernel/av/value.go
index 8b5c06e03..0256fb632 100644
--- a/kernel/av/value.go
+++ b/kernel/av/value.go
@@ -534,34 +534,34 @@ func formatNumber(content float64, format NumberFormat) string {
case NumberFormatPercent:
s := fmt.Sprintf("%.2f", content*100)
return strings.TrimRight(strings.TrimRight(s, "0"), ".") + "%"
- case NumberFormatUSD:
+ case NumberFormatUSD, "usDollar":
p := message.NewPrinter(language.English)
return p.Sprintf("$%.2f", content)
- case NumberFormatCNY:
+ case NumberFormatCNY, "yuan":
p := message.NewPrinter(language.Chinese)
return p.Sprintf("CN¥%.2f", content)
- case NumberFormatEUR:
+ case NumberFormatEUR, "euro":
p := message.NewPrinter(language.German)
return p.Sprintf("€%.2f", content)
- case NumberFormatGBP:
+ case NumberFormatGBP, "pound":
p := message.NewPrinter(language.English)
return p.Sprintf("£%.2f", content)
- case NumberFormatJPY:
+ case NumberFormatJPY, "yen":
p := message.NewPrinter(language.Japanese)
return p.Sprintf("¥%.0f", content)
- case NumberFormatRUB:
+ case NumberFormatRUB, "ruble":
p := message.NewPrinter(language.Russian)
return p.Sprintf("₽%.2f", content)
- case NumberFormatINR:
+ case NumberFormatINR, "rupee":
p := message.NewPrinter(language.Hindi)
return p.Sprintf("₹%.2f", content)
- case NumberFormatKRW:
+ case NumberFormatKRW, "won":
p := message.NewPrinter(language.Korean)
return p.Sprintf("₩%.0f", content)
- case NumberFormatCAD:
+ case NumberFormatCAD, "canadianDollar":
p := message.NewPrinter(language.English)
return p.Sprintf("CA$%.2f", content)
- case NumberFormatCHF:
+ case NumberFormatCHF, "franc":
p := message.NewPrinter(language.French)
return p.Sprintf("CHF%.2f", content)
case NumberFormatTHB:
From 0c15dfdcdd347723c09054ed8995d0e6d68957be Mon Sep 17 00:00:00 2001
From: Daniel <845765@qq.com>
Date: Thu, 9 Oct 2025 11:28:51 +0800
Subject: [PATCH 3/3] :art: Turn off autocomplete and spellcheck in the search
input box https://github.com/siyuan-note/siyuan/issues/16031
Signed-off-by: Daniel <845765@qq.com>
---
app/src/mobile/menu/search.ts | 2 +-
app/src/search/util.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/src/mobile/menu/search.ts b/app/src/mobile/menu/search.ts
index 22b11960d..eab5e0438 100644
--- a/app/src/mobile/menu/search.ts
+++ b/app/src/mobile/menu/search.ts
@@ -717,7 +717,7 @@ export const popSearch = (app: App, searchConfig?: any) => {
-
+
`,
html: `
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index 3ad4a6829..58b33ace0 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -135,7 +135,7 @@ export const genSearch = (app: App, config: Config.IUILayoutTabSearchConfig, ele
-
+