mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
🐛 Clicking the document tag in the graph reports an error https://github.com/siyuan-note/siyuan/issues/12556
This commit is contained in:
parent
82590aca3f
commit
43d15c9884
1 changed files with 5 additions and 1 deletions
|
|
@ -540,6 +540,10 @@ export class Graph extends Model {
|
|||
case "NodeSuperBlock":
|
||||
item.color = {background: rootStyle.getPropertyValue("--b3-graph-super-point").trim()};
|
||||
break;
|
||||
case "tag":
|
||||
case "textmark tag":
|
||||
item.color = {background: rootStyle.getPropertyValue("--b3-graph-tag-point").trim()};
|
||||
break;
|
||||
default:
|
||||
item.color = {background: rootStyle.getPropertyValue("--b3-graph-p-point").trim()};
|
||||
break;
|
||||
|
|
@ -658,7 +662,7 @@ export class Graph extends Model {
|
|||
if (!node) {
|
||||
return;
|
||||
}
|
||||
if (node.type === "textmark tag") {
|
||||
if (-1 < node.type.indexOf("tag")) {
|
||||
openGlobalSearch(this.app, `#${node.id}#`, !window.siyuan.ctrlIsPressed);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue