fix(ui): incorrect background color of the references blocks item container

This commit is contained in:
charlie
2023-11-29 16:53:37 +08:00
committed by Tienson Qin
parent 59cce66cd7
commit 1fdcdbe454
2 changed files with 19 additions and 2 deletions

View File

@@ -3504,7 +3504,7 @@
{:debug-id page})])))))]
(and (:ref? config) (:group-by-page? config))
[:div.flex.flex-col
[:div.flex.flex-col.references-blocks-wrap
(let [blocks (sort-by (comp :block/journal-day first) > blocks)]
(for [[page page-blocks] blocks]
(ui/lazy-visible
@@ -3513,7 +3513,7 @@
page (db/entity (:db/id page))
;; FIXME: parents need to be sorted
parent-blocks (group-by :block/parent page-blocks)]
[:div.my-2 {:key (str "page-" (:db/id page))}
[:div.my-2.references-blocks-item {:key (str "page-" (:db/id page))}
(ui/foldable
[:div
(page-cp config page)

View File

@@ -479,6 +479,7 @@
.color-level {
background-color: or(--ls-right-sidebar-content-background, --lx-gray-02, --color-level-1);
.dark & {
background-color: or(--ls-right-sidebar-content-background, --lx-gray-01, --color-level-1);
}
@@ -740,3 +741,19 @@ html.is-mac {
}
}
}
.references-blocks {
&-wrap {
.foldable-title {
@apply ml-3;
.block-control {
@apply relative right-[-5px] top-[1px];
}
}
}
&-item {
@apply bg-gray-03 rounded p-4;
}
}