An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Support setting height for code blocks https://github.com/siyuan-note/siyuan/issues/11055
Daniela7884b369595
diff --git a/app/appearance/icons/index.html b/app/appearance/icons/index.htmlindex 62fe6823c2..034fa7b040 100644--- a/app/appearance/icons/index.html+++ b/app/appearance/icons/index.html@@ -298,6 +298,12 @@</svg>iconWidth</div>+ <div>+ <svg>+ <use xlink:href="#iconHeight"></use>+ </svg>+ iconHeight+ </div><div><svg><use xlink:href="#iconAlignSettings"></use>diff --git a/app/appearance/icons/litheness/icon.js b/app/appearance/icons/litheness/icon.jsindex 6307febba2..b8c340ee00 100644--- a/app/appearance/icons/litheness/icon.js+++ b/app/appearance/icons/litheness/icon.js@@ -138,6 +138,9 @@ document.body.insertAdjacentHTML('afterbegin', `<svg id="iconsLitheness" style="<symbol id="iconWidth" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><path d="M10 15v-3"/><path d="M14 15v-3"/><path d="M18 15v-3"/><path d="M2 8V4"/><path d="M22 6H2"/><path d="M22 8V4"/><path d="M6 15v-3"/><rect x="2" y="12" width="20" height="8" rx="2"/></symbol>+ <symbol id="iconHeight" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">+ <g transform="rotate(90 12 12)"><path d="M10 15v-3"/><path d="M14 15v-3"/><path d="M18 15v-3"/><path d="M2 8V4"/><path d="M22 6H2"/><path d="M22 8V4"/><path d="M6 15v-3"/><rect x="2" y="12" width="20" height="8" rx="2"/></g>+ </symbol><symbol id="iconAlignSettings" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"><rect width="9" height="6" x="6" y="14" rx="2"/><rect width="16" height="6" x="6" y="4" rx="2"/><path d="M2 2v20"/></symbol>diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex 2bb224121b..2d51d458d1 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -3245,6 +3245,7 @@ export class Gutter {const height = firstElement.style.maxHeight.endsWith("vh") ? parseInt(firstElement.style.maxHeight) : 0;window.siyuan.menus.menu.append(new MenuItem({id: "height",+ icon: "iconHeight",label: window.siyuan.languages.height,submenu: styles.concat([{id: "heightDrag",