fix(ui): alignment of the references & hierarchy container from right sidebar

pull/10584/head
charlie 2023-11-29 18:01:45 +08:00 committed by Tienson Qin
parent 1fdcdbe454
commit 9e8cc6efb4
2 changed files with 7 additions and 2 deletions

View File

@ -683,7 +683,7 @@
}
.references {
margin-left: 12px;
@apply mx-[28px];
}
.sidebar-drop-indicator {
@ -757,6 +757,10 @@
}
}
}
.page-hierarchy {
@apply pl-[28px];
}
}
.cp__sidebar-main-content[data-is-full-width='true'] {

View File

@ -795,7 +795,7 @@
(when-let [f (:init-collapsed (last (:rum/args state)))]
(f (::collapsed? state)))
state)}
[state header content {:keys [title-trigger? on-mouse-down
[state header content {:keys [title-trigger? on-mouse-down class
_default-collapsed? _init-collapsed]}]
(let [collapsed? (get state ::collapsed?)
on-mouse-down (fn [e]
@ -804,6 +804,7 @@
(when on-mouse-down
(on-mouse-down @collapsed?)))]
[:div.flex.flex-col
{:class class}
(foldable-title {:on-mouse-down on-mouse-down
:header header
:title-trigger? title-trigger?