An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Prevent select option text overflow https://github.com/siyuan-note/siyuan/issues/19152
Danielac898976b3ad
diff --git a/app/src/assets/scss/component/_select.scss b/app/src/assets/scss/component/_select.scssindex 7f8eebe759..ed5126957d 100644--- a/app/src/assets/scss/component/_select.scss+++ b/app/src/assets/scss/component/_select.scss@@ -39,6 +39,25 @@white-space: nowrap;field-sizing: content;+ & > button {+ display: flex;+ width: 100%;+ min-width: 0;+ padding: 0;+ border: 0;+ background: transparent;+ color: inherit;+ font: inherit;++ & > selectedcontent {+ display: block;+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+ }+ }+&:disabled {opacity: .68;}diff --git a/app/src/config/render/render.ts b/app/src/config/render/render.tsindex 3e719fe334..bd622bfd47 100644--- a/app/src/config/render/render.ts+++ b/app/src/config/render/render.ts@@ -35,6 +35,7 @@ const genSelectOptionsHtml = <T extends number | string>(current: T,): string =>`<select class="b3-select fn__flex-center fn__size200" id="${id}">+ <button type="button"><selectedcontent></selectedcontent></button>${options.map((o) => `<option value="${o.value}" ${current === o.value ? "selected" : ""}>${o.label ?? String(o.value)}</option>`).join("")}