mirror of
https://github.com/penpot/penpot.git
synced 2026-05-04 15:49:34 +00:00
🐛 Fix sidebar overflow
This commit is contained in:
parent
f24ad6bee4
commit
152967bea6
@ -1057,11 +1057,12 @@
|
||||
(reset! overflow* (> scroll-height client-height))))
|
||||
|
||||
[:*
|
||||
[:div {:ref container}
|
||||
[:div {:class (stl/css :sidebar-content-wrapper)}
|
||||
(when nitrate?
|
||||
[:div {:class (stl/css :orgs-container)}
|
||||
[:> sidebar-org-switch* {:team team :profile profile}]])
|
||||
[:div {:class (stl/css-case :sidebar-content true :sidebar-content-nitrate nitrate?)}
|
||||
[:div {:ref container
|
||||
:class (stl/css-case :sidebar-content true :sidebar-content-nitrate nitrate?)}
|
||||
[:> sidebar-team-switch* {:team team :profile profile}]
|
||||
|
||||
[:> sidebar-search* {:search-term search-term
|
||||
|
||||
@ -29,11 +29,20 @@
|
||||
}
|
||||
|
||||
// SIDEBAR CONTENT COMPONENT
|
||||
.sidebar-content-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.sidebar-content {
|
||||
display: grid;
|
||||
grid-template-rows: auto auto auto auto 1fr;
|
||||
gap: var(--sp-xxl);
|
||||
height: 100%;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
padding: 0;
|
||||
overflow: hidden auto;
|
||||
}
|
||||
|
||||
@ -224,7 +224,7 @@
|
||||
display: flex;
|
||||
border-radius: var(--sp-s);
|
||||
flex-direction: column;
|
||||
margin: var(--sp-m);
|
||||
margin: var(--sp-m) var(--sp-m) 0;
|
||||
background: var(--color-background-quaternary);
|
||||
border: $b-1 solid var(--color-accent-primary-muted);
|
||||
padding: var(--sp-l);
|
||||
@ -254,7 +254,7 @@
|
||||
|
||||
.nitrate-current-plan {
|
||||
border-radius: var(--sp-s);
|
||||
margin: 0 var(--sp-m) var(--sp-m) var(--sp-m);
|
||||
margin: var(--sp-m);
|
||||
background: var(--color-background-tertiary);
|
||||
border: $b-1 solid var(--color-background-quaternary);
|
||||
padding: var(--sp-m) var(--sp-l);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user