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: Improve breadcrumb arrow affordance https://github.com/siyuan-note/siyuan/issues/2613
Daniel04bb6fa96dcb
diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scssindex c7037eea3c..0d9c7b9a35 100644--- a/app/src/assets/scss/protyle/_protyle.scss+++ b/app/src/assets/scss/protyle/_protyle.scss@@ -285,6 +285,37 @@color: var(--b3-theme-on-surface-light);margin: 0 2px;flex-shrink: 0;++ &--interactive {+ align-items: center;+ background-color: transparent;+ border: 0;+ border-radius: var(--b3-border-radius);+ box-sizing: border-box;+ color: var(--b3-theme-on-surface);+ cursor: pointer;+ display: flex;+ height: 24px;+ justify-content: center;+ margin: 0;+ padding: 5px;+ width: 24px;++ &:hover,+ &:focus-visible {+ background-color: var(--b3-list-hover);+ color: var(--b3-theme-on-background);+ }++ &:focus-visible {+ outline: 1px solid var(--b3-theme-primary);+ }++ svg {+ height: 14px;+ width: 14px;+ }+ }}&__text--ellipsis {diff --git a/app/src/protyle/breadcrumb/index.ts b/app/src/protyle/breadcrumb/index.tsindex aac318fbf9..6a4332d430 100644--- a/app/src/protyle/breadcrumb/index.ts+++ b/app/src/protyle/breadcrumb/index.ts@@ -973,7 +973,7 @@ ${padHTML}</span>`;}if (index !== response.data.length - 1) {- html += '<svg class="protyle-breadcrumb__arrow"><use xlink:href="#iconRight"></use></svg>';+ html += `<button class="protyle-breadcrumb__arrow protyle-breadcrumb__arrow--interactive ariaLabel" aria-label="${window.siyuan.languages.expand}" type="button" tabindex="-1"><svg><use xlink:href="#iconRight"></use></svg></button>`;}});this.element.innerHTML = html;