diff --git a/frontend/app/components/Session/Player/LivePlayer/AssistSessionsTabs/AssistSessionsTabs.tsx b/frontend/app/components/Session/Player/LivePlayer/AssistSessionsTabs/AssistSessionsTabs.tsx index a6735274a..07311665a 100644 --- a/frontend/app/components/Session/Player/LivePlayer/AssistSessionsTabs/AssistSessionsTabs.tsx +++ b/frontend/app/components/Session/Player/LivePlayer/AssistSessionsTabs/AssistSessionsTabs.tsx @@ -11,12 +11,14 @@ interface ITab { onClick?: () => void; classNames?: string; children: React.ReactNode; + style?: Record; } const Tab = (props: ITab) => (
{props.children}
@@ -29,7 +31,7 @@ export const InactiveTab = React.memo((props: Omit) => ( )); const ActiveTab = React.memo((props: Omit) => ( - + )); diff --git a/frontend/app/components/Session_/Player/Controls/AssistSessionsTabs/AssistSessionsTabs.tsx b/frontend/app/components/Session_/Player/Controls/AssistSessionsTabs/AssistSessionsTabs.tsx index a6735274a..07311665a 100644 --- a/frontend/app/components/Session_/Player/Controls/AssistSessionsTabs/AssistSessionsTabs.tsx +++ b/frontend/app/components/Session_/Player/Controls/AssistSessionsTabs/AssistSessionsTabs.tsx @@ -11,12 +11,14 @@ interface ITab { onClick?: () => void; classNames?: string; children: React.ReactNode; + style?: Record; } const Tab = (props: ITab) => (
{props.children}
@@ -29,7 +31,7 @@ export const InactiveTab = React.memo((props: Omit) => ( )); const ActiveTab = React.memo((props: Omit) => ( - + )); diff --git a/frontend/app/components/shared/DevTools/ConsolePanel/ConsolePanel.tsx b/frontend/app/components/shared/DevTools/ConsolePanel/ConsolePanel.tsx index f98a2a93d..21eb6c021 100644 --- a/frontend/app/components/shared/DevTools/ConsolePanel/ConsolePanel.tsx +++ b/frontend/app/components/shared/DevTools/ConsolePanel/ConsolePanel.tsx @@ -101,7 +101,7 @@ function ConsolePanel() { timeoutStartAutoscroll() } - const _list = useRef(); // TODO: fix react-virtualized types & incapsulate scrollToRow logic + const _list = useRef(null); // TODO: fix react-virtualized types & incapsulate scrollToRow logic useEffect(() => { if (_list.current) { // @ts-ignore @@ -130,8 +130,7 @@ function ConsolePanel() { const item = filteredList[index]; return ( - - {/* @ts-ignore */} + // @ts-ignore {({ measure }: any) => ( showDetails(item)} recalcHeight={() => { - measure(); (_list as any).current.recomputeRowHeights(index); + cache.clear(index, 0) }} /> )} - ) } @@ -195,6 +193,7 @@ function ConsolePanel() { ref={_list} deferredMeasurementCache={cache} overscanRowCount={5} + estimatedRowSize={36} rowCount={Math.ceil(filteredList.length || 1)} rowHeight={cache.rowHeight} rowRenderer={_rowRenderer}