Skip to content

Commit

Permalink
dashboard responsivity
Browse files Browse the repository at this point in the history
  • Loading branch information
Arbyhisenaj committed Dec 21, 2024
1 parent d0aab50 commit 503645c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const TabTriggerClasses = {
tabsList:
'w-full justify-start text-white rounded-none px-4 border border-b-meepGray-800 pt-4 pb-0 h-fit flex gap-4',
tabsTrigger:
'pb-2 bg-transparent px-0 data-[state=active]:bg-transparent data-[state=active]:text-white data-[state=active]:border-b border-white rounded-none',
'pb-2 bg-transparent px-0 data-[state=active]:bg-transparent text-meepGray-200 data-[state=active]:text-white data-[state=active]:border-b border-white rounded-none',
}

export function ReportSidebarLeft() {
Expand Down
4 changes: 2 additions & 2 deletions nextjs/src/app/reports/[id]/dashboard/ReportDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export default function ReportDashboard() {
}

return (
<main className="flex flex-col gap-4 w-full h-[calc(100vh-48px)] overflow-y-auto">
<main className="flex flex-col gap-4 w-full h-[calc(100vh-48px)] overflow-y-auto z-30">
<Tabs defaultValue="overview" className="col-span-4">
<TabsList className={TabTriggerClasses.tabsList}>
{dashboardTabItems.map((item) => (
Expand All @@ -104,7 +104,7 @@ export default function ReportDashboard() {
</TabsList>
<div className="p-4">
<TabsContent value="overview">
<div className="grid sm:grid-cols-2 md:grid-cols-2 grid-cols-1 gap-4 w-full">
<div className="flex flex-wrap gap-4 w-full">
{constituencies && !selectedBoundary && (
<>
<ReportDashboardMemberCount constituencies={constituencies} />
Expand Down
7 changes: 5 additions & 2 deletions nextjs/src/app/reports/[id]/dashboard/ReportDashboardList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,11 @@ export default function ReportDashboardList({
<CardHeader>
<CardTitle>Key Constituencies</CardTitle>
</CardHeader>
<CardContent className="h-[400px] overflow-y-auto">
<ChartContainer config={chartConfig} className={`h-[1000px] w-full`}>
<CardContent className="max-h-[400px] max-w-[600px] overflow-y-auto">
<ChartContainer
config={chartConfig}
className={`h-[500px] w-full overflow-y-auto`}
>
<BarChart
accessibilityLayer
data={chartData}
Expand Down
2 changes: 1 addition & 1 deletion nextjs/src/components/ChartCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Card = React.forwardRef<
<div
ref={ref}
className={cn(
'rounded-lg border bg-card text-card-foreground shadow-sm',
'rounded-lg border bg-card text-card-foreground shadow-sm flex-1 min-w-[300px]',
className
)}
{...props}
Expand Down

0 comments on commit 503645c

Please sign in to comment.