Skip to content

Commit a798a85

Browse files
authored
fix ui admin (#5054)
1 parent 55f048c commit a798a85

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

web/components/templates/admin/orgSearch.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,22 +1071,22 @@ const OrgTableRow = ({
10711071
</div>
10721072
</div>
10731073

1074-
{/* Right: Charts - Split evenly */}
1075-
<div className="flex h-full flex-col gap-4">
1074+
{/* Right: Charts - Match left column height */}
1075+
<div className="flex flex-col gap-4">
10761076
{/* Usage Chart */}
1077-
<div className="flex min-h-0 flex-1 flex-col gap-2">
1077+
<div className="flex flex-1 flex-col gap-2">
10781078
<Small className="font-medium">
10791079
Monthly Usage (Last 12 Months)
10801080
</Small>
10811081
{usageLoading ? (
1082-
<div className="flex min-h-0 w-full flex-1 items-center justify-center border border-border bg-muted/10">
1082+
<div className="flex h-[200px] w-full items-center justify-center border border-border bg-muted/10">
10831083
<div className="flex items-center gap-2">
10841084
<Loader2 className="h-5 w-5 animate-spin text-muted-foreground" />
10851085
<Muted className="text-xs">Loading chart data...</Muted>
10861086
</div>
10871087
</div>
10881088
) : usageData?.monthly_usage ? (
1089-
<div className="min-h-0 w-full flex-1">
1089+
<div className="h-[200px] w-full">
10901090
<ChartContainer
10911091
config={{
10921092
requestCount: {
@@ -1134,26 +1134,26 @@ const OrgTableRow = ({
11341134
</ChartContainer>
11351135
</div>
11361136
) : (
1137-
<div className="flex min-h-0 w-full flex-1 items-center justify-center border border-border bg-muted/10">
1137+
<div className="flex h-[200px] w-full items-center justify-center border border-border bg-muted/10">
11381138
<Muted className="text-xs">Unable to load chart data</Muted>
11391139
</div>
11401140
)}
11411141
</div>
11421142

11431143
{/* Cost Chart */}
1144-
<div className="flex min-h-0 flex-1 flex-col gap-2">
1144+
<div className="flex flex-1 flex-col gap-2">
11451145
<Small className="font-medium">
11461146
Monthly Cost (Last 12 Months)
11471147
</Small>
11481148
{usageLoading ? (
1149-
<div className="flex min-h-0 w-full flex-1 items-center justify-center border border-border bg-muted/10">
1149+
<div className="flex h-[200px] w-full items-center justify-center border border-border bg-muted/10">
11501150
<div className="flex items-center gap-2">
11511151
<Loader2 className="h-5 w-5 animate-spin text-muted-foreground" />
11521152
<Muted className="text-xs">Loading chart data...</Muted>
11531153
</div>
11541154
</div>
11551155
) : usageData?.monthly_usage ? (
1156-
<div className="min-h-0 w-full flex-1">
1156+
<div className="h-[200px] w-full">
11571157
<ChartContainer
11581158
config={{
11591159
cost: {
@@ -1201,7 +1201,7 @@ const OrgTableRow = ({
12011201
</ChartContainer>
12021202
</div>
12031203
) : (
1204-
<div className="flex min-h-0 w-full flex-1 items-center justify-center border border-border bg-muted/10">
1204+
<div className="flex h-[200px] w-full items-center justify-center border border-border bg-muted/10">
12051205
<Muted className="text-xs">Unable to load chart data</Muted>
12061206
</div>
12071207
)}

0 commit comments

Comments
 (0)