From bc0189cc141fbef25828f2882f468c3337169a76 Mon Sep 17 00:00:00 2001 From: Krishna Gupta Date: Wed, 15 Nov 2023 15:52:36 +0530 Subject: [PATCH 1/2] fix: Avatars row position is not correct on Add message page Signed-off-by: Krishna Gupta --- src/components/MultipleAvatars.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MultipleAvatars.js b/src/components/MultipleAvatars.js index 209540189b69..97cc2adb5427 100644 --- a/src/components/MultipleAvatars.js +++ b/src/components/MultipleAvatars.js @@ -112,8 +112,8 @@ function MultipleAvatars(props) { const rowSize = Math.min(Math.ceil(props.icons.length / 2), props.maxAvatarsInRow); // Slice the icons array into two rows - const firstRow = props.icons.slice(rowSize); - const secondRow = props.icons.slice(0, rowSize); + const firstRow = props.icons.slice(0, rowSize); + const secondRow = props.icons.slice(rowSize); // Update the state with the two rows as an array return [firstRow, secondRow]; From d61b5131889e466234a41333e318e84a6cab9033 Mon Sep 17 00:00:00 2001 From: Krishna Gupta Date: Thu, 16 Nov 2023 00:30:33 +0530 Subject: [PATCH 2/2] fix: Avatars row position is not correct on Add message page Signed-off-by: Krishna Gupta --- src/components/MultipleAvatars.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MultipleAvatars.tsx b/src/components/MultipleAvatars.tsx index e867de7ddb97..febe18f30c7d 100644 --- a/src/components/MultipleAvatars.tsx +++ b/src/components/MultipleAvatars.tsx @@ -119,8 +119,8 @@ function MultipleAvatars({ const rowSize = Math.min(Math.ceil(icons.length / 2), maxAvatarsInRow); // Slice the icons array into two rows - const firstRow = icons.slice(rowSize); - const secondRow = icons.slice(0, rowSize); + const firstRow = icons.slice(0, rowSize); + const secondRow = icons.slice(rowSize); // Update the state with the two rows as an array return [firstRow, secondRow];