Skip to content

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

:art: Refine database item template editor focus and mobile spacing https://github.com/siyuan-note/siyuan/issues/19340

Daniel3e108a8f723a
diff --git a/app/src/assets/scss/business/_av.scss b/app/src/assets/scss/business/_av.scss
index 76dc3bf4a8..b78ae30fa7 100644
--- a/app/src/assets/scss/business/_av.scss
+++ b/app/src/assets/scss/business/_av.scss
@@ -318,9 +318,17 @@
}
}
+ // 控件已为描边卡片,值容器不再叠加悬停底色
+ &__template-editor .custom-attr__avvalue:hover {
+ background-color: transparent;
+ }
+
&__template-editor .custom-attr .block__icons {
@media (max-width: 750px) {
flex-wrap: wrap;
+ // 编辑器已有内边距,移动端不再叠加行内边距,避免内容过度内缩
+ padding-left: 0;
+ padding-right: 0;
}
}
@@ -330,6 +338,8 @@
@media (max-width: 750px) {
align-self: auto;
flex: 1 1 100%;
+ margin-left: 0;
+ padding-left: 0;
width: auto;
}
@@ -338,6 +348,13 @@
}
}
+ &__template-editor .custom-attr .custom-attr__avvalue {
+ @media (max-width: 750px) {
+ padding-left: 0;
+ padding-right: 0;
+ }
+ }
+
// 模板编辑器控件与筛选面板统一为描边卡片样式
&__template-editor .custom-attr {
.b3-text-field,
@@ -348,11 +365,15 @@
box-shadow: none;
outline: none;
- &:hover,
- &:focus {
+ &:hover {
background-color: var(--b3-menu-background);
box-shadow: none;
}
+
+ &:focus {
+ border-color: var(--b3-theme-primary-light);
+ box-shadow: 0 0 0 .6px var(--b3-theme-primary-lighter);
+ }
}
.b3-text-field {