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: Simplify tab block CSS selectors https://github.com/siyuan-note/siyuan/issues/19569
Daniel14e17e179c1e
diff --git a/app/src/assets/scss/protyle/_tabs.scss b/app/src/assets/scss/protyle/_tabs.scssindex 5bc5e96010..a532f93738 100644--- a/app/src/assets/scss/protyle/_tabs.scss+++ b/app/src/assets/scss/protyle/_tabs.scss@@ -48,6 +48,21 @@&::-webkit-scrollbar {display: none;}++ // 方向取自当前列表,避免外层页签的布局影响嵌套页签。+ &[aria-orientation="vertical"] {+ flex-direction: column;+ align-items: stretch;+ gap: 4px;+ flex-basis: 100%;+ max-height: 60vh;++ > .tabs-tab {+ justify-content: flex-start;+ max-width: none;+ margin: 0;+ }+ }}.tabs-divider {@@ -151,6 +166,14 @@&.protyle-wysiwyg--hl::after {border-radius: inherit;}++ &[data-tabs-hidden="true"] {+ display: none;+ }++ &[data-tabs-hidden]:not([data-tabs-editing="true"]) > .tab-item-info {+ display: none;+ }}.tab-item-title {@@ -169,7 +192,7 @@visibility: hidden;}- .tabs[data-tabs-orientation="horizontal"] > .tabs-header > .tabs-list > .tabs-tab--editing {+ .tabs-list[aria-orientation="horizontal"] > .tabs-tab--editing {width: 186px;max-width: 100%;justify-content: flex-start;@@ -269,14 +292,6 @@}}- > .tab-item[data-tabs-hidden="true"] {- display: none;- }-- > .tab-item:not([data-tabs-editing="true"]) > .tab-item-info {- display: none;- }-&[data-tabs-orientation="vertical"] {display: grid;grid-template-columns: fit-content(min(200px, 40%)) minmax(0, 1fr);@@ -308,20 +323,6 @@border-right: 1px solid var(--b3-border-color);border-top-left-radius: max(0px, calc(var(--b3-border-radius-b) - var(--tabs-border-left-width, 1px)));border-bottom-left-radius: max(0px, calc(var(--b3-border-radius-b) - var(--tabs-border-left-width, 1px)));-- > .tabs-list {- flex-direction: column;- align-items: stretch;- gap: 4px;- flex-basis: 100%;- max-height: 60vh;-- > .tabs-tab {- justify-content: flex-start;- max-width: none;- margin: 0;- }- }}}}@@ -345,33 +346,33 @@.protyle-wysiwyg, .b3-typography {.tabs[data-tabs-ready="true"] {display: block !important;+ }- > .tabs-header, > .tabs-divider {- display: none !important;- }+ .tabs-header, .tabs-divider {+ display: none !important;+ }- > .tab-item[data-tabs-hidden], > .tab-item > .tab-item-info {- display: block !important;- }+ .tab-item[data-tabs-hidden], .tab-item[data-tabs-hidden] > .tab-item-info {+ display: block !important;+ }++ .tabs-title-editor {+ position: static;+ width: auto !important;+ height: auto !important;+ clip-path: none !important;+ padding: 0;+ background: transparent;+ box-shadow: none;+ font-size: inherit;++ .tab-item-title[spellcheck] {+ font-weight: bold;+ white-space: normal;+ overflow: visible;- > .tab-item > .tabs-title-editor {- position: static;- width: auto !important;- height: auto !important;- clip-path: none !important;- padding: 0;- background: transparent;- box-shadow: none;- font-size: inherit;-- .tab-item-title[spellcheck] {- font-weight: bold;- white-space: normal;- overflow: visible;-- br {- display: initial;- }+ br {+ display: initial;}}}