Skip to content

Commit

Permalink
Merge pull request #1 from HIITMEMARIO/fix/profileImage
Browse files Browse the repository at this point in the history
fix:Vertical Cluster List에서 여러 아이템 클릭 시, 열린 아이템의 authors 이미지들이 List 최…
  • Loading branch information
HIITMEMARIO authored Jul 30, 2024
2 parents 4caf8da + f8f5c4d commit eaa53cb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@
width: 100%;
padding: 4px 6px;
box-sizing: border-box;
align-items: center;
}

.selected-length {
font-size: 10px;
margin-left: 20px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ const FilteredAuthors = () => {
const { selectedData } = useGlobalData();
const authSrcMap = usePreLoadAuthorImg();
const selectedClusters = getInitData(selectedData);
const filteredSelectedData = selectedClusters.reverse().slice(0, 9);
const selectedClustersLength = selectedClusters.slice(9);

return (
<div className="selected-container">
{authSrcMap &&
selectedClusters.map((selectedCluster) => {
filteredSelectedData.reverse().map((selectedCluster) => {
return selectedCluster.summary.authorNames.map((authorArray: string[]) => {
return authorArray.map((authorName: string) => (
<Author
Expand All @@ -24,6 +26,9 @@ const FilteredAuthors = () => {
));
});
})}
<div className="selected-length">
{selectedClusters.length > 9 ? `+ ${selectedClustersLength.length} more` : null}
</div>
</div>
);
};
Expand Down

0 comments on commit eaa53cb

Please sign in to comment.