Skip to content

Commit 1beaab8

Browse files
committed
fix(frontend): users policies page responsiveness
1 parent 4f657f3 commit 1beaab8

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

frontend/app/components/dashboard/user-card.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ export function UserCard({
6363
)}
6464
>
6565
<CardHeader className="pb-3">
66-
<div className="flex items-start justify-between">
67-
<div className="flex-1">
66+
<div className="flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3">
67+
<div className="min-w-0">
6868
<CardTitle className="text-lg font-semibold">{user.user}</CardTitle>
6969
<p className="text-xs text-muted-foreground mt-1">
7070
Created {formatDateOnly(user.created_at, timeZone)}
7171
</p>
7272
</div>
73-
<div className="flex items-center gap-2">
73+
<div className="flex items-center gap-2 flex-shrink-0 flex-wrap">
7474
<PolicyGate requiredPolicies={Policy.USERS_UPDATE_POLICIES}>
7575
<DropdownMenu>
7676
<DropdownMenuTrigger asChild>

frontend/app/components/dashboard/users-policies-page.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ export default function UsersPoliciesPage() {
5252
<PolicyGate requiredPolicies={Policy.USERS_GET}>
5353
<DndContext onDragStart={handleDragStart} onDragEnd={handleDragEnd}>
5454
<div className="flex h-full overflow-hidden">
55-
{/* Left Panel - Policies */}
5655
<div
57-
className="border-r border-border bg-sidebar/30 flex flex-col overflow-hidden"
56+
className="hidden md:flex border-r border-border bg-sidebar/30 flex-col overflow-hidden"
5857
style={{ width: `${leftPanelWidth}%` }}
5958
>
6059
<div className="p-6 border-b border-border flex-shrink-0">
@@ -102,9 +101,8 @@ export default function UsersPoliciesPage() {
102101
</div>
103102
</div>
104103

105-
{/* Resizer */}
106104
<div
107-
className="w-2 bg-border hover:bg-primary cursor-col-resize transition-colors flex-shrink-0 relative group"
105+
className="hidden md:block w-2 bg-border hover:bg-primary cursor-col-resize transition-colors flex-shrink-0 relative group"
108106
onMouseDown={(e) => handleResizeStart(e.clientX)}
109107
>
110108
<div className="absolute inset-y-0 left-1/2 -translate-x-1/2 w-1 bg-transparent group-hover:bg-primary/50 transition-colors" />

0 commit comments

Comments
 (0)