Skip to content

Commit 6da5ed1

Browse files
committed
Move SimpleBar 100% height styling from Scrollable component inline styles to Panel module CSS
1 parent 9aa4caa commit 6da5ed1

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/editor/src/views/panel/frontend/Panel.module.scss‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
&--hidden {
2424
display: none;
2525
}
26+
27+
[data-simplebar='init'] {
28+
height: 100%;
29+
}
2630
}
2731

2832
.edit-web-configuration-footer {

‎packages/ui/src/components/editor/common/Scrollable/Scrollable.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export const Scrollable = forwardRef<any, Props>((props, ref) => {
101101
<SimpleBar
102102
ref={simplebar_ref}
103103
style={{
104-
height: '100%',
104+
// height: '100%',
105105
maxHeight: props.max_height
106106
}}
107107
>

0 commit comments

Comments
 (0)