Skip to content

Commit

Permalink
Improved the channel column in the alerts table
Browse files Browse the repository at this point in the history
  • Loading branch information
samejr committed May 8, 2024
1 parent feaa6d1 commit 9174ec5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
17 changes: 3 additions & 14 deletions apps/webapp/app/components/primitives/DetailCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,33 +49,22 @@ export function DetailCell({
const variation = variations[variant];

return (
<div
className={cn(
"group flex h-11 w-full items-center gap-3 rounded-md p-1 pr-3 transition hover:bg-charcoal-900",
className
)}
>
<div className={cn("group flex h-11 w-full items-center gap-3 rounded-md p-1 pr-3", className)}>
<IconInBox
icon={leadingIcon}
className={cn("flex-none transition group-hover:border-charcoal-750", leadingIconClassName)}
/>
<div className="flex flex-1 flex-col">
<Paragraph
variant={variation.label.variant}
className={cn(
"flex-1 text-left transition group-hover:text-text-bright",
variation.label.className
)}
className={cn("flex-1 text-left", variation.label.className)}
>
{label}
</Paragraph>
{description && (
<Paragraph
variant={variation.description.variant}
className={cn(
"flex-1 text-left text-text-dimmed transition group-hover:text-text-bright",
variation.description.className
)}
className={cn("flex-1 text-left text-text-dimmed", variation.description.className)}
>
{description}
</Paragraph>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ function AlertChannelDetails({ alertChannel }: { alertChannel: AlertChannelListP
leadingIcon={
<AlertChannelTypeIcon
channelType={alertChannel.type}
className="h-4 w-4 text-charcoal-400"
className="size-5 text-charcoal-400"
/>
}
leadingIconClassName="text-charcoal-400"
Expand All @@ -368,7 +368,7 @@ function AlertChannelDetails({ alertChannel }: { alertChannel: AlertChannelListP
<TooltipTrigger>
<AlertChannelTypeIcon
channelType={alertChannel.type}
className="h-4 w-4 text-charcoal-400"
className="size-5 text-charcoal-400"
/>
</TooltipTrigger>
<TooltipContent className="flex items-center gap-1">Webhook</TooltipContent>
Expand Down Expand Up @@ -396,7 +396,7 @@ function AlertChannelDetails({ alertChannel }: { alertChannel: AlertChannelListP
leadingIcon={
<AlertChannelTypeIcon
channelType={alertChannel.type}
className="h-4 w-4 text-charcoal-400"
className="size-5 text-charcoal-400"
/>
}
leadingIconClassName="text-charcoal-400"
Expand Down

0 comments on commit 9174ec5

Please sign in to comment.