Skip to content

Commit

Permalink
feat: highlight numbers better
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKetmo committed Nov 8, 2024
1 parent eb2a9b7 commit 37e7b36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/alerts/alert-groups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function AlertGroupHeader(props: AlertGroupHeaderProps) {
<span className="text-sm font-mono font-medium group-hover:underline">
{name}
</span>
<span className="text-xs text-slate-500">
<span className="text-xs text-slate-500 bg-secondary rounded-sm p-1 w-6 text-center">
{alerts.length}
</span>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/layout/app-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,9 @@ export function AppSidebar() {
<SidebarMenuButton asChild>
<Link href={`/alerts/${handle}`}>
<SquareDot />
<div className="flex items-baseline gap-2">
<span className="shrink-0">{view.name || handle}</span>
<span className="shrink-0 text-xs text-muted-foreground">
<div className="flex items-baseline gap-2 w-full">
<span className="shrink-0 grow">{view.name || handle}</span>
<span className="shrink-0 text-xs text-muted-foreground bg-secondary p-1 w-6 text-center rounded-sm">
{flatAlerts.filter(alertFilter(view.filters)).length}
</span>
</div>
Expand Down

0 comments on commit 37e7b36

Please sign in to comment.