style: cluster selector

This commit is contained in:
jialin
2025-12-24 20:37:20 +08:00
parent b25189feea
commit 84c2bf130c
9 changed files with 151 additions and 40 deletions
+10
View File
@@ -12,6 +12,15 @@ const Wrapper = styled.div<{ $maxHeight?: number | string }>`
width: 100%;
`;
const Title = styled.div`
display: flex;
align-items: center;
max-width: 360px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
`;
const ScrollerModal = (
props: ModalProps & { maxContentHeight?: number | string }
) => {
@@ -48,6 +57,7 @@ const ScrollerModal = (
return (
<Modal
{...props}
title={<Title>{props.title}</Title>}
destroyOnHidden={true}
styles={{
content: {