-
一个新用户友好的吐槽
2024-09-26 07:53怎么说呢,我觉得这个说法稍微有点夸张,思源跟三年前差得可不是一点半点。(不过因为开发精力有限,移动端仍然是很不好用的状态)
- WebDAV 的同步性能很差,这些时间是花在同步上的所以才这么慢,换 S3 会好得多。
- 功能多了很多,BUG 也在积极解决,如果你遇到了 BUG 可以直接发帖反馈,一般很快就会修复。
- 思源的用户比较少使用插件,一般都是冲着开箱即用来的,所以做插件的开发者也少,不过最近也慢慢多了一些。
- 制卡是块级功能,只能是在块标菜单的。
- 闪卡功能在重构中,不过进展确实较慢。
- 懂一点 CSS 的话很容易隐藏,或者你可以发帖问(确实对程序员比较友好)。
如果有使用上的疑惑,欢迎从一个“普通用户”的角度反馈你所遇到的问题,有充足的反馈才会有更好的改变。
感谢你的反馈。
-
如何在句子开头输入大于号
2024-09-25 21:27思源遵循 Markdown 语法,在段落块开头输入
>会转换为引述块。而使用
\转义的话不方便以后复制,所以更建议楼主使用行级代码` `包裹各种带符号的文本。 -
希望“引述”样式可以自定义
2024-09-25 14:47请使用 CSS 代码片段自行修改,比如我自己在用的样式是:
/* 自定义引述块样式 CSS片段 */ .b3-typography blockquote, .b3-typography .bq, .protyle-wysiwyg blockquote, .protyle-wysiwyg .bq{ color:#808080; background-color: transparent; border-radius: unset; border-left: 4px solid #8080804a; padding: 0px 0px 0px 8px; margin-left: 0.3em; } .protyle-wysiwyg .bq span[data-type~=em] { color:#808080 } .protyle-wysiwyg .bq span[data-type~=s] { color:#808080 } .protyle-wysiwyg .bq span[data-type~=strong] { color:#808080 } .protyle-wysiwyg .bq span[data-type~=mark] { color:#808080 } .protyle-wysiwyg .bq [data-node-id] span[data-type~=tag] { color:#808080 } -
求助文档内 1-6 级标题的颜色代码片段
2024-09-25 13:09/*编辑器*/ .protyle-wysiwyg .h1 { color: #d40045; } .protyle-wysiwyg .h2 { color: #ff7f00; } .protyle-wysiwyg .h3 { color: #66b82b; } .protyle-wysiwyg .h4 { color: #093f86; } .protyle-wysiwyg .h5 { color: #340c81; } /*大纲*/ .sy__outline [data-type="NodeHeading"][data-subtype="h1"] :is(.b3-list-item__graphic,.b3-list-item__text) { color: #d40045; } .sy__outline [data-type="NodeHeading"][data-subtype="h2"] :is(.b3-list-item__graphic,.b3-list-item__text) { color: #ff7f00; } .sy__outline [data-type="NodeHeading"][data-subtype="h3"] :is(.b3-list-item__graphic,.b3-list-item__text) { color: #66b82b; } .sy__outline [data-type="NodeHeading"][data-subtype="h4"] :is(.b3-list-item__graphic,.b3-list-item__text) { color: #093f86; } .sy__outline [data-type="NodeHeading"][data-subtype="h5"] :is(.b3-list-item__graphic,.b3-list-item__text) { color: #340c81; } -
希望鼠标悬浮自动展开大纲
2024-09-24 15:06我让 GPT 辅助写了一个 JS 片段,基本能实现,但我感觉交互很奇怪:
// 鼠标移动到大纲标题自动展开与折叠下级 JS片段 setTimeout(() => { const headings = document.querySelectorAll('li.b3-list-item[data-type="NodeHeading"]'); headings.forEach((heading) => { let hideTimeout; let removeTimeout; let isMouseInHeading = false; // 标志变量,跟踪鼠标是否在 heading 内 let isMouseInSubMenu = false; // 标志变量,跟踪鼠标是否在子菜单内 // 鼠标进入列表项 heading.addEventListener('mouseenter', () => { isMouseInHeading = true; // 设置标志变量 clearTimeout(removeTimeout); // 清除可能存在的移除定时器 let nextElement = heading.nextElementSibling; if (nextElement && nextElement.tagName.toLowerCase() === 'ul') { removeTimeout = setTimeout(() => { if (isMouseInHeading) { nextElement.classList.remove('fn__none'); } }, 200); // 延迟 200ms 后再移除 fn__none } }); // 鼠标离开列表项 heading.addEventListener('mouseleave', () => { isMouseInHeading = false; // 更新标志变量 hideTimeout = setTimeout(() => { let nextElement = heading.nextElementSibling; if (nextElement && nextElement.tagName.toLowerCase() === 'ul' && !isMouseInSubMenu) { nextElement.classList.add('fn__none'); } }, 200); // 延迟 200ms 后再添加 fn__none }); // 鼠标移动到 ul > li 上时,阻止 fn__none 添加 let nextElement = heading.nextElementSibling; if (nextElement) { nextElement.querySelectorAll('li').forEach((ulItem) => { ulItem.addEventListener('mouseenter', () => { isMouseInSubMenu = true; // 更新标志变量 clearTimeout(hideTimeout); // 清除定时器,防止隐藏 clearTimeout(removeTimeout); // 清除移除定时器 }); ulItem.addEventListener('mouseleave', () => { isMouseInSubMenu = false; // 更新标志变量 hideTimeout = setTimeout(() => { if (nextElement) { nextElement.classList.add('fn__none'); } }, 200); }); }); } }); }, 1000);