Skip to content

Commit

Permalink
fix: resizer should not scroll with the container
Browse files Browse the repository at this point in the history
  • Loading branch information
pengx17 authored and tiensonqin committed Apr 25, 2021
1 parent f7c8d90 commit 6d4c97a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/frontend/components/right_sidebar.cljs
Expand Up @@ -267,7 +267,7 @@
[:div.cp__right-sidebar-inner.flex.flex-col.h-full#right-sidebar-container

(sidebar-resizer)
[:div
[:div.cp__right-sidebar-scollable
[:div.cp__right-sidebar-topbar.flex.flex-row.justify-between.items-center.px-4.h-12
[:div.cp__right-sidebar-settings.hide-scrollbar {:key "right-sidebar-settings"}
[:div.ml-4.text-sm
Expand Down
7 changes: 3 additions & 4 deletions src/main/frontend/components/sidebar.css
Expand Up @@ -113,15 +113,14 @@
width: var(--ls-right-sidebar-width);
}

&::-webkit-scrollbar {
display: none;
&-scollable {
min-height: 100%;
overflow-y: scroll;
}

&-inner {
padding-top: 0;
position: relative;
min-height: 100%;
overflow-y: scroll;

.resizer {
position: absolute;
Expand Down

0 comments on commit 6d4c97a

Please sign in to comment.