Skip to content

Commit

Permalink
fix: minor ui tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKetmo committed Nov 22, 2024
1 parent d89f9de commit b24b33a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
9 changes: 3 additions & 6 deletions src/components/alerts/alert-groups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ function AlertGroupHeader(props: AlertGroupHeaderProps) {

return (
<div className="flex space-x-2 items-center w-full">
<div className="flex items-baseline gap-2">
<span className="text-sm font-mono font-medium group-hover:underline">
<div className="flex items-baseline gap-2 overflow-hidden">
<span className="text-sm font-mono truncate font-medium group-hover:underline">
{name}
</span>
<span className="text-xs text-slate-500 bg-secondary rounded-sm p-1 w-6 text-center">
Expand All @@ -89,10 +89,7 @@ function AlertGroupHeader(props: AlertGroupHeaderProps) {
</div>
<div className="grow" />
<div>
<ChevronDown size={16} className={cn(
'transition-transform',
!open ? '-rotate-90' : '',
)} />
<ChevronDown size={16} className={cn('transition-transform', !open ? '-rotate-90' : '')} />
</div>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion src/components/alerts/template.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export function AlertsTemplate(props: Props) {
</div>
</div>

<div className="overflow-auto">
<div className="overflow-x-clip overflow-y-auto">
<AlertGroups alertGroups={alertGroups} />

<footer className="my-6 text-xs flex gap-2 justify-center text-muted-foreground">
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/app-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function AppLayout({ children }: { children: React.ReactNode }) {
<AppSidebar />
<CommandMenu />
<main className="grow relative bg-sidebar">
<div className="absolute inset-0 bg-background m-2 rounded-sm overflow-auto border">
<div className="absolute inset-0 bg-background m-2 rounded-lg overflow-auto border">
{children}
</div>
</main>
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/app-sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export function AppSidebar() {
<CollapsibleTrigger asChild>
<SidebarMenuButton >
<SquareDot />
<span>{viewCategories[category]?.name || category}</span>
<span className="truncate">{viewCategories[category]?.name || category}</span>
<ChevronRight className="transition-transform ml-auto group-data-[state=open]/collapsible:rotate-90" />
</SidebarMenuButton>
</CollapsibleTrigger>
Expand Down

0 comments on commit b24b33a

Please sign in to comment.