Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:sparkles: fix https://github.com/siyuan-note/siyuan/issues/6748

Vanessa4f2502188482
diff --git a/app/src/assets/scss/_search.scss b/app/src/assets/scss/_search.scss
index 40021b14b0..487b8a7709 100644
--- a/app/src/assets/scss/_search.scss
+++ b/app/src/assets/scss/_search.scss
@@ -21,7 +21,7 @@
position: relative;
border-bottom: 1px solid var(--b3-theme-surface-lighter);
- &:hover .block__icon {
+ .block__icon {
opacity: 1;
}
@@ -87,6 +87,12 @@
border-top: 1px solid var(--b3-theme-surface-lighter);
}
+ &__result {
+ white-space: nowrap;
+ margin-left: 5px;
+ line-height: 24px;
+ }
+
&__list {
position: relative;
flex: 1;
diff --git a/app/src/search/util.ts b/app/src/search/util.ts
index aa6f26c340..86e3237afd 100644
--- a/app/src/search/util.ts
+++ b/app/src/search/util.ts
@@ -132,8 +132,8 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
<div class="fn__space"></div>
<div id="replaceHistoryList" data-close="false" class="fn__none b3-menu b3-list b3-list--background"></div>
</div>
- <div class="fn__flex" style="margin: 8px">
- <span id="searchResult" style="white-space: nowrap;margin-left: 9px"></span>
+ <div class="fn__flex search__header" style="padding: 4px 8px;">
+ <span id="searchResult" class="search__result"></span>
<span class="fn__space"></span>
<span class="fn__flex-1"></span>
<span id="searchPathInput" class="search__path ft__on-surface fn__flex-center ft__smaller fn__ellipsis" title="${config.hPath}">