fix: benchmark detail styles

This commit is contained in:
jialin
2026-01-30 18:48:55 +08:00
parent d173e2d49b
commit 3df2d23bf5
24 changed files with 310 additions and 218 deletions
+14 -2
View File
@@ -19,10 +19,21 @@ export const OverlayScroller: React.FC<
OverlayScrollerOptions & {
maxHeight?: number;
style?: React.CSSProperties;
styles?: {
wrapper?: React.CSSProperties;
};
children: React.ReactNode;
onScroll?: (e: React.UIEvent<HTMLDivElement, UIEvent>) => void;
}
> = ({ children, maxHeight, scrollbars, oppositeTheme, style, onScroll }) => {
> = ({
children,
maxHeight,
scrollbars,
oppositeTheme,
style,
styles,
onScroll
}) => {
const scroller = React.useRef<any>(null);
const { initialize } = useOverlayScroller({
options: {
@@ -48,7 +59,8 @@ export const OverlayScroller: React.FC<
style={{
paddingInlineStart: 8,
paddingInlineEnd: 8,
...style
...style,
...styles?.wrapper
}}
>
{children}