Skip to content

Commit 7a54520

Browse files
tcnichollongshuicy
andauthored
stretched icon when extractor description long (#789)
* disable ripple effect * fix the stretch --------- Co-authored-by: Chen Wang <[email protected]>
1 parent 2c53de8 commit 7a54520

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

frontend/src/components/listeners/ListenerItem.tsx

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,27 @@ export default function ListenerItem(props: ListenerCardProps) {
5151
{extractorDescription}
5252
</Typography>
5353
</Box>
54-
<IconButton
55-
color="primary"
56-
disabled={
57-
fileId !== undefined || datasetId !== undefined ? false : true
58-
}
59-
onClick={() => {
60-
setOpenSubmitExtraction(true);
61-
setSelectedExtractor(extractorInfo);
54+
<Box
55+
sx={{
56+
flexGrow: 1,
57+
display: "flex",
58+
justifyContent: "end",
59+
margin: "auto",
6260
}}
6361
>
64-
<PlayCircleIcon />
65-
</IconButton>
62+
<IconButton
63+
color="primary"
64+
disabled={
65+
fileId !== undefined || datasetId !== undefined ? false : true
66+
}
67+
onClick={() => {
68+
setOpenSubmitExtraction(true);
69+
setSelectedExtractor(extractorInfo);
70+
}}
71+
>
72+
<PlayCircleIcon />
73+
</IconButton>
74+
</Box>
6675
</Box>
6776
);
6877
}

0 commit comments

Comments
 (0)