Skip to content

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

:art: Improve gallery database row action styling https://github.com/siyuan-note/siyuan/issues/18372

Daniele142496bd316
diff --git a/app/src/assets/scss/business/_custom.scss b/app/src/assets/scss/business/_custom.scss
index ab8faf7bb9..dea925579c 100644
--- a/app/src/assets/scss/business/_custom.scss
+++ b/app/src/assets/scss/business/_custom.scss
@@ -417,16 +417,19 @@
.av__row--hl .av__row-actions,
.av__row--locate .av__row-actions,
.av__cell--select > .av__row-actions,
-.av__cell--active > .av__row-actions,
-.av__gallery-item--select .av__row-actions,
-.av__gallery-item--locate .av__row-actions {
+.av__cell--active > .av__row-actions {
background-color: var(--b3-theme-background);
background-image: linear-gradient(var(--b3-theme-primary-lightest), var(--b3-theme-primary-lightest));
}
-.av__gallery-item:hover:not(.av__gallery-item--select):not(.av__gallery-item--locate) .av__row-actions {
- background-color: var(--b3-theme-background);
- background-image: linear-gradient(var(--b3-theme-surface-light), var(--b3-theme-surface-light));
+.av__gallery-item .av__row-actions {
+ background-color: transparent;
+ background-image: none;
+ gap: 4px;
+
+ .av__row-action {
+ background-color: var(--b3-theme-background);
+ }
}
.protyle-db-row {