An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
@use "../util/function";
@use "../component/form";
.search {
&__input {
resize: none;
&--sql {
height: 100px;
max-height: 30vh;
}
}
&__av-content {
-webkit-line-clamp: 7;
overflow-wrap: anywhere;
}
&__layout {
display: flex;
flex: 1;
min-height: .1px;
flex-direction: column;
&:not(.search__layout--row) .search__list {
border-top: 1px solid var(--b3-theme-surface-lighter);
}
&--row {
flex-direction: row;
border-top: 1px solid var(--b3-theme-surface-lighter);
.search__preview {
border-top: 0;
}
.search__drag {
cursor: col-resize;
width: 6px;
margin: 0 -6px 0 0;
height: auto;
touch-action: none;
&::after {
width: .5px;
height: 100%;
}
}
}
}
&__header {
display: flex;
background: var(--b3-theme-background);
position: relative;
border-top: 1px solid var(--b3-theme-surface-lighter);
min-height: 40px;
> .block__icons {
align-self: flex-start;
}
.b3-text-field--text {
font-size: 18px;
height: 42px;
line-height: 32px;
border-radius: var(--b3-border-radius);
padding: 5px 8px 5px 44px !important;
box-shadow: none;
width: 100%;
&.search__input--sql {
height: 100px;
}
}
.b3-form__icon-icon {
top: 13px;
left: 8px;
}
.b3-menu {
max-width: 70%;
max-height: 50vh;
overflow: auto;
top: 42px;
position: absolute;
left: 8px;
z-index: 3;
}
}
&__arrowdown {
position: absolute;
height: 12px;
width: 12px;
left: 24px;
top: 16px;
}
&__history-icon {
@extend .fn__a;
height: 42px;
width: 42px;
display: block;
position: absolute;
}
&__label {
position: absolute;
right: 8px;
z-index: 1;
}
&__preview {
background-color: var(--b3-theme-background);
border-top: 1px solid var(--b3-theme-surface-lighter);
}
&__drag {
cursor: row-resize;
width: 100%;
margin: 0 0 -6px 0;
height: 6px;
position: relative;
// 需高于 .protyle-breadcrumb,并低于 .protyle-toolbar
z-index: 6;
&::after {
content: "";
display: block;
background-color: var(--b3-theme-surface-lighter);
position: absolute;
left: 0;
transition: var(--b3-transition);
top: 0;
width: 100%;
height: .5px;
}
&:hover::after {
background-color: var(--b3-scroll-color);
}
}
&__list {
position: relative;
flex: 1;
overflow: auto;
padding: 8px 0;
background-color: var(--b3-theme-background);
min-width: 88px;
min-height: 32px;
.b3-list-item__text {
user-select: none;
}
}
&__path {
white-space: nowrap;
position: relative;
padding-right: 20px;
line-height: 18px;
}
&__rmpath {
@extend .b3-form__icon-clear;
}
&__tip {
font-size: 12px;
color: var(--b3-theme-on-surface-light);
padding: 2px 8px;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
line-height: 22px;
border-top: 1px solid var(--b3-theme-surface-lighter);
kbd {
&:first-child {
margin-left: 0;
}
padding: 1px 3px;
font-family: var(--b3-font-family-kbd);
font-variant-emoji: text;
background-color: var(--b3-theme-surface);
border: solid 1px var(--b3-theme-surface-lighter);
border-radius: var(--b3-border-radius);
box-shadow: inset 0 -1px 0 var(--b3-theme-surface-lighter);
margin: 2px 4px 2px 16px;
line-height: 14px;
}
}
&__empty {
text-align: center;
font-size: 17px;
padding: 32px;
color: var(--b3-theme-on-surface);
}
}
.asset-picker {
display: flex;
flex: 1;
flex-direction: column;
min-height: 0;
&__search {
padding: 12px 16px;
}
&__body {
display: flex;
flex: 1;
gap: 8px;
min-height: 0;
padding: 0 16px 8px;
}
&__list,
&__preview {
flex: 1;
min-height: 0;
min-width: 0;
}
&__list {
display: flex;
flex-direction: column;
overflow-x: hidden;
overflow-y: auto;
}
&__preview {
display: flex;
align-items: center;
justify-content: center;
overflow: auto;
word-break: break-all;
img {
max-width: 100%;
object-fit: contain;
}
}
&__item {
flex-shrink: 0;
}
&__action {
gap: 8px;
}
&--mobile &__body {
flex-direction: column;
}
}
@media screen and (max-width: 640px) {
.asset-picker__body {
flex-direction: column;
}
}