Skip to content

Commit 1643464

Browse files
author
杨家乐
committed
feat: improve blacklist details dialog accessibility
Allow viewing blacklist details dialog even with single item
1 parent 97bc8f9 commit 1643464

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/clusters/information.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,7 @@ export default function Information() {
986986
</Typography>
987987
</Box>
988988
))}
989-
{blacklistData.length > 2 && (
989+
{blacklistData.length > 0 && (
990990
<Button
991991
size="small"
992992
onClick={() => setOpenBlacklistDialog(true)}
@@ -999,7 +999,7 @@ export default function Information() {
999999
},
10001000
}}
10011001
>
1002-
View More ({blacklistData.length - 2})
1002+
{blacklistData.length > 2 ? `View More (${blacklistData.length - 2})` : 'View Details'}
10031003
</Button>
10041004
)}
10051005
</Box>

0 commit comments

Comments
 (0)