mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
fix(ui): size object permissions card grid by container width (#35019)
The card variant used viewport breakpoints (md:grid-cols-2 lg:grid-cols-3) but every card usage sits in a one-third-width grid cell, so on desktop the narrow card still rendered three internal columns of roughly 100px each and the text spilled out of its boxes. Switch to Tailwind container queries so the internal column count follows the card's own width
This commit is contained in:
parent
e299d2b970
commit
fe1670fc06
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ export function ObjectPermissionsView({
|
|||
const searchTools = objectPermission?.search_tools || [];
|
||||
|
||||
const content = (
|
||||
<div className={variant === "card" ? "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6" : "space-y-4"}>
|
||||
<div className={variant === "card" ? "grid grid-cols-1 @xl:grid-cols-2 @4xl:grid-cols-3 gap-6" : "space-y-4"}>
|
||||
<VectorStorePermissions vectorStores={vectorStores} accessToken={accessToken} />
|
||||
<MCPServerPermissions
|
||||
mcpServers={mcpServers}
|
||||
|
|
@ -53,7 +53,7 @@ export function ObjectPermissionsView({
|
|||
|
||||
if (variant === "card") {
|
||||
return (
|
||||
<div className={`bg-white border border-gray-200 rounded-lg p-6 ${className}`}>
|
||||
<div className={`@container bg-white border border-gray-200 rounded-lg p-6 ${className}`}>
|
||||
<div className="flex items-center gap-2 mb-6">
|
||||
<div>
|
||||
<Text className="font-semibold text-gray-900">Object Permissions</Text>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue