Skip to content

Commit ffbea62

Browse files
committed
add customize scrollbars functionality
1 parent b293eac commit ffbea62

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

client/packages/lowcoder/src/comps/comps/tableLiteComp/parts/TableContainer.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,23 @@ const SimpleBarWrapper = styled(SimpleBar)<{
4747
}>`
4848
height: 100%;
4949
border: 4px solid red;
50+
51+
.ant-table-content, .ant-table-body {
52+
overflow: unset !important;
53+
}
5054
5155
${props => !props.$showVertical && `
52-
.simplebar-scrollbar[data-direction="vertical"] {
53-
opacity: 0 !important;
54-
pointer-events: none;
56+
.simplebar-track.simplebar-vertical {
57+
visibility: hidden !important;
5558
}
5659
`}
5760
5861
${props => !props.$showHorizontal && `
59-
.simplebar-scrollbar[data-direction="horizontal"] {
60-
opacity: 0 !important;
61-
pointer-events: none;
62+
.simplebar-track.simplebar-horizontal {
63+
visibility: hidden !important;
6264
}
6365
`}
66+
6467
`;
6568

6669
interface TableContainerProps {

0 commit comments

Comments
 (0)