Skip to content

Commit

Permalink
fix: right sidebar header wrap and content padding
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc authored and tiensonqin committed Aug 22, 2023
1 parent fbee361 commit 9507f0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/main/frontend/components/container.css
Expand Up @@ -653,13 +653,10 @@ html[data-theme='dark'] {
min-height: 100px;

.sidebar-item-header {
white-space: nowrap;

.breadcrumb {
margin-top: 0;
margin-bottom: 0;
text-overflow: ellipsis;
overflow: hidden;
text-align: left;
}
}

Expand Down
6 changes: 4 additions & 2 deletions src/main/frontend/components/right_sidebar.cljs
Expand Up @@ -266,10 +266,12 @@
(context-menu-content db-id idx block-type collapsed? block-count close-fn)))
[:button.button.close {:title (t :right-side-bar/pane-close)
:on-click #(state/sidebar-remove-block! idx)} (ui/icon "x")]]]
[:div.scrollbar-spacing.p-4 {:role "region"
[:div.pt-4.p-1 {:role "region"
:id (str "sidebar-panel-content-" idx)
:aria-labelledby (str "sidebar-panel-header-" idx)
:class (if collapsed? "hidden" "initial")}
:class (util/classnames [{:hidden collapsed?
:initial (not collapsed?)
:p-4 (not (contains? #{:page :block :contents} block-type))}])}
(inner-component component (not drag-from))]
(when drag-from (drop-area idx))])]
(drop-indicator idx drag-to)]))))
Expand Down

0 comments on commit 9507f0e

Please sign in to comment.