@antscorp/antsomi-ui 1.3.5-beta.300 → 1.3.5-beta.302
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -52,12 +52,10 @@ export const Scrollbars = props => {
|
|
|
52
52
|
ref.current.thumbHorizontal.style.transform = `translateX(${thumbHorizontalPosition}px)`;
|
|
53
53
|
}
|
|
54
54
|
// Handle show hide track bar
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
ref.current.trackHorizontal.style.visibility = 'hidden';
|
|
60
|
-
}
|
|
55
|
+
ref.current.trackVertical.style.visibility =
|
|
56
|
+
scrollHeight <= clientHeight ? 'hidden' : 'visible';
|
|
57
|
+
ref.current.trackHorizontal.style.visibility =
|
|
58
|
+
scrollWidth <= clientWidth ? 'hidden' : 'visible';
|
|
61
59
|
};
|
|
62
60
|
return (React.createElement(CustomScrollbars, Object.assign({ className: `custom-scrollbars ${className || ''}`, ref: ref, autoHide: autoHide, autoHeightMax: autoHeightMax, renderThumbVertical: props => React.createElement(ThumbBar, Object.assign({ className: "thumb-vertical" }, props)), renderThumbHorizontal: props => React.createElement(ThumbBar, Object.assign({ className: "thumb-horizontal" }, props)), renderTrackVertical: (_a) => {
|
|
63
61
|
var { style } = _a, restOfProps = __rest(_a, ["style"]);
|
|
@@ -37,6 +37,8 @@ export const StyledDrawer = styled(Drawer) `
|
|
|
37
37
|
}
|
|
38
38
|
`;
|
|
39
39
|
export const Content = styled.div `
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
40
42
|
position: relative;
|
|
41
43
|
overflow: auto;
|
|
42
44
|
flex: 1 1 0%;
|
|
@@ -112,6 +114,7 @@ export const DrawerHeader = styled(Flex) `
|
|
|
112
114
|
padding: 0px 20px;
|
|
113
115
|
box-sizing: border-box;
|
|
114
116
|
background-color: ${globalToken === null || globalToken === void 0 ? void 0 : globalToken.bw0};
|
|
117
|
+
flex-shrink: 0;
|
|
115
118
|
z-index: 20;
|
|
116
119
|
|
|
117
120
|
${props => props.height &&
|