Skip to content

Commit e73fa43

Browse files
committed
Simplify tools list markup
Signed-off-by: Trung Nguyen <[email protected]>
1 parent d468180 commit e73fa43

File tree

1 file changed

+9
-16
lines changed
  • src/extension/ui/src/components/tile

1 file changed

+9
-16
lines changed

src/extension/ui/src/components/tile/Modal.tsx

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ const ConfigurationModal = ({
108108
fontSize: 12,
109109
fontStyle: 'normal',
110110
fontWeight: 400,
111+
width: 'fit-content',
111112
};
112113

113114
// State for tabs
@@ -259,32 +260,24 @@ const ConfigurationModal = ({
259260
{!catalogItem?.tools?.length && (
260261
<Typography>No tools available for this item.</Typography>
261262
)}
262-
<Grid2
263-
container
263+
<Stack
264264
spacing={1}
265-
alignItems="flex-start"
266265
sx={{
267-
mt: 1,
268266
overflow: 'auto',
269267
maxHeight: 'calc(80vh - 200px)',
268+
minHeight: '180px',
270269
}}
271270
>
272271
{(catalogItem.tools || []).map((tool) => (
273-
<Grid2
272+
<Typography
274273
key={tool.name}
275-
size={{ xs: 12, sm: 12, md: 6, lg: 6, xl: 6 }}
274+
variant="body2"
275+
sx={toolChipStyle}
276276
>
277-
<Typography
278-
component="span"
279-
variant="body2"
280-
key={tool.name}
281-
sx={toolChipStyle}
282-
>
283-
{tool.name}
284-
</Typography>
285-
</Grid2>
277+
{tool.name}
278+
</Typography>
286279
))}
287-
</Grid2>
280+
</Stack>
288281
</TabPanel>
289282
<TabPanel value={tabValue} index={1}>
290283
<Stack

0 commit comments

Comments
 (0)