本人只想要 savor 主题中的列表转表格功能。但因为涉及 js,完全不懂,想问问有没有人愿意帮忙提取一下。
有无大佬提取 savor 主题中的列表转表格功能
相关帖子
-
确实是,但或许插件 +css 样式调整可能是最简单快捷的方案,毕竟提取太过麻烦了。
比如
:root:not([plugin-custom-block-disabled~=list-view-table]) .protyle-content [custom-block-list-view=table]>[data-node-id].li { /* padding: 3px 0; */ overflow: visible; } :root:not([plugin-custom-block-disabled~=list-view-table]) .protyle-content [custom-block-list-view=table] [data-node-id].li>.protyle-action { top: 0%; } :root:not([plugin-custom-block-disabled~=list-view-table]) .protyle-content [custom-block-list-view=table] [data-node-id] { border-radius: 0; }
效果
2 回复 -
代码没分行大概率是写别的语言代码,然后编译成 CSS 和 JavaScript 的,比如 SCSS 和 TypeScript。可以在插件详情页页面点击插件的名称或 id 去 GitHub 查看源代码。
-
那个圆点没有居中对齐
这不是看你截图中的效果才弄的, 不要这个效果,更省事。
那个圆点没有居中对齐
你说的对齐是什么?如果指左侧空白太多的话,这是因为小圆点上移了显得空旷,恢复上移就好了
你看看下面这个是不是你想要的效果?
css:
:root:not([plugin-custom-block-disabled~=list-view-table]) .protyle-content [custom-block-list-view=table] [data-node-id] { border-radius: 0; }
效果:
另外,想看懂“自定义块”插件的内容可以看看插件开发文档 https://docs.siyuan-note.club/zh-Hans/
另外,已发布的插件的 js 内容会被压缩了,可查看自定义块插件源码 https://github.com/Zuoqiu-Yingyi/siyuan-plugin-custom-block
1 回复 -
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于