修改换行逻辑和段落查看方式

This commit is contained in:
yhy
2026-08-30 07:44:59 +08:00
parent 54f004a56c
commit ce79275d41
14 changed files with 489 additions and 232 deletions
@@ -1,11 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="context-stroke" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<!-- Lucide: FoldVertical (adaptive off / fixed height) -->
<path d="M12 22v-6"/>
<path d="M12 8V2"/>
<path d="M4 12H2"/>
<path d="M10 12H8"/>
<path d="M16 12h-2"/>
<path d="M22 12h-2"/>
<path d="m15 19-3-3-3 3"/>
<path d="m15 5-3 3-3-3"/>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<!-- Lucide FoldVertical, filled for Zotero toolbar buttons -->
<path d="M7.375 2.75h1.25v10.5h-1.25V2.75z" fill="context-fill"/>
<path d="M8 5.25 4.75 2h6.5L8 5.25z" fill="context-fill"/>
<path d="M8 10.75 4.75 14h6.5L8 10.75z" fill="context-fill"/>
<path d="M1.5 7.625h1.25v.75H1.5v-.75zm2.75 0h1.25v.75H4.25v-.75zm5.5 0H11v.75H9.75v-.75zm2.75 0h1.25v.75H13v-.75z" fill="context-fill" fill-opacity="0.82"/>
</svg>

Before

Width:  |  Height:  |  Size: 449 B

After

Width:  |  Height:  |  Size: 522 B

+6 -10
View File
@@ -1,11 +1,7 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="context-stroke" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<!-- Lucide: UnfoldVertical (adaptive on) -->
<path d="M12 22v-6"/>
<path d="M12 8V2"/>
<path d="M4 12H2"/>
<path d="M10 12H8"/>
<path d="M16 12h-2"/>
<path d="M22 12h-2"/>
<path d="m15 19-3 3-3-3"/>
<path d="m15 5-3-3-3 3"/>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<!-- Lucide UnfoldVertical, filled for Zotero toolbar buttons -->
<path d="M7.375 2.75h1.25v10.5h-1.25V2.75z" fill="context-fill"/>
<path d="M8 2.75 4.75 6h6.5L8 2.75z" fill="context-fill"/>
<path d="M8 13.25 4.75 10h6.5L8 13.25z" fill="context-fill"/>
<path d="M1.5 7.625h1.25v.75H1.5v-.75zm2.75 0h1.25v.75H4.25v-.75zm5.5 0H11v.75H9.75v-.75zm2.75 0h1.25v.75H13v-.75z" fill="context-fill" fill-opacity="0.82"/>
</svg>

Before

Width:  |  Height:  |  Size: 435 B

After

Width:  |  Height:  |  Size: 524 B

+3 -6
View File
@@ -1,7 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="context-stroke" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<!-- Lucide: AppWindow -->
<rect x="2" y="4" width="20" height="16" rx="2"/>
<path d="M10 4v4"/>
<path d="M2 8h20"/>
<path d="M6 4v4"/>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<!-- Lucide AppWindow, filled for Zotero toolbar buttons -->
<path fill-rule="evenodd" clip-rule="evenodd" d="M3 2.5h10a1.5 1.5 0 0 1 1.5 1.5v8.5a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 12.5V4A1.5 1.5 0 0 1 3 2.5Zm0 2.5v7.5a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V5H3Zm9-2H4a.5.5 0 0 0-.5.5V4.5h9V3a.5.5 0 0 0-.5-.5ZM5.25 2.5h1V4h-1V2.5Z" fill="context-fill"/>
</svg>

Before

Width:  |  Height:  |  Size: 337 B

After

Width:  |  Height:  |  Size: 465 B