1.14.4版Ribbon栏创建新kanban的图标不显示了,点击却能用

如题,问了下ai,说要用css片段去解决,不太信任,有没有大佬知道怎么解决

等插件作者更新吧,应该是新版的obsidian图标库不支持原先用的那个图标了,所以显示图标为空了

用这个css片段也可以暂时加上:

.side-dock-ribbon-action[aria-label="创建新看板"]::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;

  /* 图标颜色:写 currentColor 会自动跟随父级文字颜色,也可写死如 #3b82f6 */
  background-color: currentColor;

  /* 直接粘贴 SVG 源码 */
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-trello"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><rect x="7" y="7" width="3" height="9"></rect><rect x="14" y="7" width="3" height="5"></rect></svg>');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}
1 个赞

作者更新是两年前了,感觉他不会回归了,等大佬或者官方收了这个插件了

我的kanban图标早都不显示了,等作者更新也等不到,换了个 kanban plus++ ,fork 的 kanban 代码,功能无缝切换。

我也感觉原作者弃坑了,只能等其他大佬做个类似的了