Explorar o código

:art: https://github.com/siyuan-note/siyuan/issues/13440

Vanessa hai 6 meses
pai
achega
f0a7ffd1dc
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      app/src/protyle/header/Background.ts
  2. 1 1
      app/src/util/assets.ts

+ 1 - 1
app/src/protyle/header/Background.ts

@@ -443,7 +443,7 @@ export class Background {
         if (tags) {
             let html = "";
             const colors = ["secondary", "primary", "info", "success", "warning", "error", "pink"];
-            new Set(tags.split(",")).forEach((item, index) => {
+            new Set(tags.split(",").map(item => item.trim())).forEach((item, index) => {
                 if (!item.replace(/ /g, "")) {
                     return;
                 }

+ 1 - 1
app/src/util/assets.ts

@@ -217,7 +217,7 @@ export const setInlineStyle = (set = true) => {
   local("Segoe UI Symbol");
   unicode-range: U+263a, U+1fae4, U+2194-2199, U+2934-2935, U+25b6, U+25c0, U+23cf, U+2640, U+2642, U+2611, U+303d,
   U+3030, U+00a9, U+00ae, U+2122, U+1f170, U+1f171, U+24c2, U+1f17e, U+1f17f, U+1f250, U+1f21a, U+1f22f, U+1f232-1f23a,
-  U+1f251, U+3297, U+3299, U+2639, U+2660, U+2666, U+2665, U+2663;
+  U+1f251, U+3297, U+3299, U+2639, U+2660, U+2666, U+2665, U+2663, U+26A0;
 }
 @font-face {
   font-family: "Emojis";