Skip to content

Commit de659d0

Browse files
Copilothotlong
andcommitted
fix: address code review feedback - add clarifying comment and md:p-6 to dashboard
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 7d93b4b commit de659d0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/plugin-dashboard/src/DashboardRenderer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ export const DashboardRenderer = forwardRef<HTMLDivElement, DashboardRendererPro
5858
ref={ref}
5959
className={cn(
6060
"grid auto-rows-min",
61+
// Responsive grid: 1 column on mobile, 2 on sm, 3 on lg, 4 on xl
62+
// When columns > 4, inline gridTemplateColumns style overrides these classes
6163
"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",
6264
className
6365
)}
@@ -170,7 +172,7 @@ export const DashboardRenderer = forwardRef<HTMLDivElement, DashboardRendererPro
170172
</CardHeader>
171173
)}
172174
<CardContent className="p-0">
173-
<div className={cn("h-full w-full", "p-3 sm:p-4")}>
175+
<div className={cn("h-full w-full", "p-3 sm:p-4 md:p-6")}>
174176
<SchemaRenderer schema={componentSchema} />
175177
</div>
176178
</CardContent>

0 commit comments

Comments
 (0)