more layout changes to /integrations (#914)

* added truncate to list
This commit is contained in:
Peer Richelsen 2021-10-12 13:06:12 +01:00 committed by GitHub
parent 392c8e8da4
commit 6f204ca521
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -65,7 +65,7 @@ export function ListItemText<TComponent extends keyof JSX.IntrinsicElements = "s
component,
{
...passThroughProps,
className: classNames("text-sm text-gray-500", props.className),
className: classNames("text-sm text-gray-500 truncate", props.className),
},
props.children
);

View file

@ -172,7 +172,7 @@ function ConnectOrDisconnectIntegrationButton(props: {
}
if (!props.installed) {
return (
<div className="h-12 -mt-1">
<div className="h-12 -mt-1 truncate">
<Alert severity="warning" title="Not installed" />
</div>
);
@ -193,7 +193,7 @@ function IntegrationListItem(props: {
<ListItem expanded={!!props.children} className={classNames("flex-col")}>
<div className={classNames("flex flex-1 space-x-2 w-full p-4 items-center")}>
<Image width={40} height={40} src={`/${props.imageSrc}`} alt={props.title} />
<div className="pl-2 flex-grow">
<div className="pl-2 flex-grow truncate">
<ListItemTitle component="h3">{props.title}</ListItemTitle>
<ListItemText component="p">{props.description}</ListItemText>
</div>