@@ -109,7 +109,7 @@ export function AnalyticsPanel({ posts, recentComments }: AnalyticsPanelProps) {
109109 </ p >
110110 </ div >
111111
112- < section className = "grid gap-4 md :grid-cols-2 xl:grid-cols-4" >
112+ < section className = "grid gap-4 sm :grid-cols-2 xl:grid-cols-4" >
113113 < article className = "rounded-xl border-4 border-black bg-white p-5 shadow-[6px_6px_0px_0px_rgba(0,0,0,0.08)]" >
114114 < div className = "flex items-center gap-3" >
115115 < BarChart4 className = "h-5 w-5 text-[#6C63FF]" aria-hidden = "true" />
@@ -173,7 +173,7 @@ export function AnalyticsPanel({ posts, recentComments }: AnalyticsPanelProps) {
173173
174174 < section className = "grid gap-6 xl:grid-cols-[2fr_1fr]" >
175175 < article className = "rounded-xl border-4 border-black bg-white p-6 shadow-[6px_6px_0px_0px_rgba(0,0,0,0.08)]" >
176- < header className = "mb-6 flex items-center justify-between" >
176+ < header className = "mb-6 flex flex-wrap items-center justify-between gap-3 " >
177177 < div className = "flex items-center gap-3" >
178178 < Activity className = "h-5 w-5 text-[#6C63FF]" aria-hidden = "true" />
179179 < h2 className = "text-xl font-bold text-[#2A2A2A]" > Monthly performance</ h2 >
@@ -183,7 +183,7 @@ export function AnalyticsPanel({ posts, recentComments }: AnalyticsPanelProps) {
183183 Last 6 months
184184 </ span >
185185 </ header >
186- < div className = "grid grid-cols-6 gap-4" >
186+ < div className = "grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4 xl:grid-cols-6 " >
187187 { monthlyPerformance . map ( ( month ) => {
188188 const height = month . views === 0 ? 6 : Math . min ( 110 , Math . round ( month . views / 20 ) ) ;
189189 return (
@@ -211,7 +211,7 @@ export function AnalyticsPanel({ posts, recentComments }: AnalyticsPanelProps) {
211211 </ article >
212212
213213 < article className = "rounded-xl border-4 border-black bg-white p-6 shadow-[6px_6px_0px_0px_rgba(0,0,0,0.08)]" >
214- < header className = "mb-4 flex items-center gap-3" >
214+ < header className = "mb-4 flex flex-wrap items-center gap-3" >
215215 < PieChart className = "h-5 w-5 text-[#FF5252]" aria-hidden = "true" />
216216 < h2 className = "text-xl font-bold text-[#2A2A2A]" > Status distribution</ h2 >
217217 </ header >
@@ -235,7 +235,7 @@ export function AnalyticsPanel({ posts, recentComments }: AnalyticsPanelProps) {
235235 </ section >
236236
237237 < section className = "rounded-xl border-4 border-black bg-white p-6 shadow-[6px_6px_0px_0px_rgba(0,0,0,0.08)]" >
238- < header className = "mb-4 flex items-center gap-3" >
238+ < header className = "mb-4 flex flex-wrap items-center gap-3" >
239239 < Flame className = "h-5 w-5 text-[#6C63FF]" aria-hidden = "true" />
240240 < h2 className = "text-xl font-bold text-[#2A2A2A]" > Top categories by reach</ h2 >
241241 </ header >
0 commit comments