The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(studio): improve unified logs checkbox hit area and align icons (#47832)
Danny White539b66f5c4aa
diff --git a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/DetailSection.tsx b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/DetailSection.tsxindex a91e2d8b012..d5df7bae8b7 100644--- a/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/DetailSection.tsx+++ b/apps/studio/components/interfaces/UnifiedLogs/ServiceFlow/components/shared/DetailSection.tsx@@ -2,7 +2,9 @@ import { LucideIcon } from 'lucide-react'import { ReactNode } from 'react'import { cn } from 'ui'-type IconComponent = LucideIcon | React.ComponentType<{ size?: number; className?: string }>+type IconComponent =+ | LucideIcon+ | React.ComponentType<{ size?: number; strokeWidth?: number; className?: string }>interface DetailSectionHeaderProps {title: string@@ -25,7 +27,7 @@ export const DetailSectionHeader = ({)}<div className="flex min-w-0 items-center gap-2">{Icon ? (- <Icon size={14} className="shrink-0 text-foreground-lighter" />+ <Icon size={14} strokeWidth={1.5} className="shrink-0 text-foreground-lighter" />) : (<span className="w-3.5 shrink-0" aria-hidden />)}diff --git a/apps/studio/components/interfaces/UnifiedLogs/components/Columns.tsx b/apps/studio/components/interfaces/UnifiedLogs/components/Columns.tsxindex 16e6b86e234..f42da4969f4 100644--- a/apps/studio/components/interfaces/UnifiedLogs/components/Columns.tsx+++ b/apps/studio/components/interfaces/UnifiedLogs/components/Columns.tsx@@ -45,6 +45,7 @@ export function generateDynamicColumns({ data }: { data: ColumnSchema[] }): {cell: ({ row }) => {return (<Checkbox+ className="hit-area-2 hover:border-foreground-muted"checked={row.getIsSelected()}onCheckedChange={(value) => row.toggleSelected(!!value)}onClick={(e) => e.stopPropagation()}@@ -112,7 +113,7 @@ export function generateDynamicColumns({ data }: { data: ColumnSchema[] }): {const logType = row.getValue<ColumnSchema['log_type']>('log_type')return (<div className="flex items-center justify-end gap-1">- <LogTypeIcon type={logType} size={16} className="text-foreground-muted" />+ <LogTypeIcon type={logType} size={14} className="text-foreground-lighter" /></div>)},diff --git a/apps/studio/components/interfaces/UnifiedLogs/components/LogTypeIcon.tsx b/apps/studio/components/interfaces/UnifiedLogs/components/LogTypeIcon.tsxindex d482821ee1a..437607e219a 100644--- a/apps/studio/components/interfaces/UnifiedLogs/components/LogTypeIcon.tsx+++ b/apps/studio/components/interfaces/UnifiedLogs/components/LogTypeIcon.tsx@@ -33,7 +33,7 @@ const ICON_MAP: Partial<Record<(typeof LOG_TYPES)[number], IconComponent>> = {export const LogTypeIcon = ({type,- size = 16,+ size = 14,strokeWidth = 1.5,className,}: LogTypeIconProps) => {