Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ui/.oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"es2024": true
},
"categories": {
"correctness": "error"
"correctness": "warn"
},
"rules": {
"import/no-cycle": ["error", { "maxDepth": 1, "ignoreExternal": true }],
"import/no-cycle": ["warn", { "maxDepth": 1, "ignoreExternal": true }],
"typescript/no-explicit-any": "warn",
"typescript/ban-ts-comment": "off"
},
Expand Down
6 changes: 3 additions & 3 deletions ui/app/workspace/dashboard/components/charts/chartCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ interface ChartCardProps {
export function ChartCard({ title, children, headerActions, loading, testId, height = "200px", className }: ChartCardProps) {
if (loading) {
return (
<Card className="min-w-0 rounded-sm p-2 shadow-none" data-testid={testId}>
<div className="mb-3 space-y-2">
<Card className={cn("min-w-0 rounded-sm p-2 shadow-none", className)} data-testid={testId}>
<div className="mb-2 space-y-2">
<span className="text-primary pl-2 text-sm font-medium">{title}</span>
{headerActions && (
<div className="w-full min-w-0" data-testid={testId ? `${testId}-actions` : undefined}>
{headerActions}
</div>
)}
</div>
<div style={{ height, marginBottom: 6 }} data-testid={testId ? `${testId}-chart-skeleton` : undefined}>
<div style={{ height }} data-testid={testId ? `${testId}-chart-skeleton` : undefined}>
<Skeleton className="h-full w-full" />
</div>
</Card>
Expand Down
Loading
Loading