Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Fix internal users table overflow (#12736)

tanjiro88e4d302a282
diff --git a/ui/litellm-dashboard/src/components/view_users.tsx b/ui/litellm-dashboard/src/components/view_users.tsx
index 39a5206fea3..0275454abd0 100644
--- a/ui/litellm-dashboard/src/components/view_users.tsx
+++ b/ui/litellm-dashboard/src/components/view_users.tsx
@@ -296,7 +296,7 @@ const ViewUserDashboard: React.FC<ViewUserDashboardProps> = ({ accessToken, toke
)
return (
- <div className="w-full p-6">
+ <div className="w-full p-6 overflow-hidden">
<div className="flex items-center justify-between mb-4">
<div className="flex space-x-3">
<CreateUser userID={userID} accessToken={accessToken} teams={teams} possibleUIRoles={possibleUIRoles} />
@@ -506,7 +506,7 @@ const ViewUserDashboard: React.FC<ViewUserDashboardProps> = ({ accessToken, toke
</div>
</div>
</div>
-
+ <div className="overflow-auto">
<UserDataTable
data={userListQuery.data?.users || []}
columns={tableColumns}
@@ -529,6 +529,8 @@ const ViewUserDashboard: React.FC<ViewUserDashboardProps> = ({ accessToken, toke
selectedUsers={selectedUsers}
onSelectionChange={handleSelectionChange}
/>
+ </div>
+
</div>
</TabPanel>
diff --git a/ui/litellm-dashboard/src/components/view_users/columns.tsx b/ui/litellm-dashboard/src/components/view_users/columns.tsx
index 63dee940dc3..7e114ced6fb 100644
--- a/ui/litellm-dashboard/src/components/view_users/columns.tsx
+++ b/ui/litellm-dashboard/src/components/view_users/columns.tsx
@@ -33,7 +33,7 @@ export const columns = (
),
},
{
- header: "User Email",
+ header: "Email",
accessorKey: "user_email",
cell: ({ row }) => (
<span className="text-xs">{row.original.user_email || "-"}</span>
@@ -49,7 +49,7 @@ export const columns = (
),
},
{
- header: "User Spend ($ USD)",
+ header: "Spend (USD)",
accessorKey: "spend",
cell: ({ row }) => (
<span className="text-xs">
@@ -58,7 +58,7 @@ export const columns = (
),
},
{
- header: "User Max Budget ($ USD)",
+ header: "Budget (USD)",
accessorKey: "max_budget",
cell: ({ row }) => (
<span className="text-xs">