mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
fix(ui): incorrect background color of the references blocks item container
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user