@@ -8,6 +8,7 @@ const MainContainer = styled.div<{
88 $mode : 'AUTO' | 'FIXED' ;
99 $showHorizontalScrollbar : boolean ;
1010 $showVerticalScrollbar : boolean ;
11+ virtual : boolean ;
1112} > `
1213 display: flex;
1314 flex-direction: column;
@@ -17,13 +18,13 @@ const MainContainer = styled.div<{
1718 /* Critical CSS controls for SimpleBar */
1819
1920
20- ${ props => ! props . $showHorizontalScrollbar && `
21+ ${ props => ( ! props . $showHorizontalScrollbar || props . virtual ) && `
2122 div.simplebar-horizontal {
2223 visibility: hidden !important;
2324 }
2425 ` }
2526
26- ${ props => ! props . $showVerticalScrollbar && `
27+ ${ props => ( ! props . $showVerticalScrollbar || props . virtual ) && `
2728 div.simplebar-vertical {
2829 visibility: hidden !important;
2930 }
@@ -60,6 +61,13 @@ const TableSection = styled.div<{
6061} > `
6162 min-height: 0;
6263 min-width: 0;
64+
65+ /* Ant Table virtualization scrollbar - match SimpleBar colors */
66+ .ant-table-tbody-virtual-scrollbar-thumb {
67+ background: rgba(0,0,0,0.35) !important;
68+ border-radius: 6px;
69+ transition: background .2s ease;
70+ }
6371` ;
6472
6573const SimpleBarWrapper = styled ( SimpleBar ) `
@@ -97,6 +105,7 @@ interface TableContainerProps {
97105 containerRef ?: React . RefObject < HTMLDivElement > ;
98106 showVerticalScrollbar : boolean ;
99107 showHorizontalScrollbar : boolean ;
108+ virtual : boolean ;
100109}
101110
102111export const TableContainer : React . FC < TableContainerProps > = ( {
@@ -108,16 +117,23 @@ export const TableContainer: React.FC<TableContainerProps> = ({
108117 children,
109118 containerRef,
110119 showVerticalScrollbar,
111- showHorizontalScrollbar
120+ showHorizontalScrollbar,
121+ virtual
112122} ) => {
113123 const hideScrollbar = ! showHorizontalScrollbar && ! showVerticalScrollbar ;
114124
125+ React . useEffect ( ( ) => {
126+ // eslint-disable-next-line no-console
127+ console . log ( 'TableContainer virtual:' , virtual ) ;
128+ } , [ virtual ] ) ;
129+
115130 return (
116131 < MainContainer
117132 $mode = { mode }
118133 ref = { containerRef }
119134 $showHorizontalScrollbar = { showHorizontalScrollbar }
120135 $showVerticalScrollbar = { showVerticalScrollbar }
136+ virtual = { virtual }
121137 >
122138 { /* Sticky above toolbar - always visible */ }
123139 { stickyToolbar && toolbarPosition === 'above' && showToolbar && (
0 commit comments