From e2536d30266a482ccbe6f37a6d783f3c5985a34c Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Tue, 24 Nov 2020 18:02:55 -0300 Subject: [PATCH] Regression: Verticalbar size (#19670) Co-authored-by: Gabriel Henriques --- client/channel/Discussions/ContextualBar/List.js | 8 ++++---- client/channel/Threads/ContextualBar/List.js | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/client/channel/Discussions/ContextualBar/List.js b/client/channel/Discussions/ContextualBar/List.js index 5fa1b7d5662..7616466ae6c 100644 --- a/client/channel/Discussions/ContextualBar/List.js +++ b/client/channel/Discussions/ContextualBar/List.js @@ -198,7 +198,7 @@ export function DiscussionList({ total = 10, discussions = [], loadMoreItems, lo />, [onClick, showRealNames, userId]); const isItemLoaded = useCallback((index) => index < discussionsRef.current.length, []); - const { ref, contentBoxSize: { inlineSize = 378, blockSize = 750 } = {} } = useResizeObserver(); + const { ref, contentBoxSize: { inlineSize = 378, blockSize = 750 } = {} } = useResizeObserver({ debounceDelay: 100 }); return @@ -210,10 +210,10 @@ export function DiscussionList({ total = 10, discussions = [], loadMoreItems, lo }/> - + {error && {error.toString()}} {total === 0 && {t('No_Discussions_found')}} - 0 && {} : loadMoreItems} @@ -229,7 +229,7 @@ export function DiscussionList({ total = 10, discussions = [], loadMoreItems, lo onItemsRendered={onItemsRendered} >{rowRenderer} )} - + } ; diff --git a/client/channel/Threads/ContextualBar/List.js b/client/channel/Threads/ContextualBar/List.js index 432b0b532eb..d417bc00ef7 100644 --- a/client/channel/Threads/ContextualBar/List.js +++ b/client/channel/Threads/ContextualBar/List.js @@ -252,10 +252,10 @@ export function ThreadList({ total = 10, threads = [], room, unread = [], unread - + {error && {error.toString()}} {total === 0 && {t('No_Threads')}} - 0 && {} : loadMoreItems} @@ -271,7 +271,7 @@ export function ThreadList({ total = 10, threads = [], room, unread = [], unread onItemsRendered={onItemsRendered} >{rowRenderer} )} - + } ;