@@ -128,52 +128,49 @@ export function OrganizationsList({
128128 key = { org . id }
129129 onClick = { ( ) => handleCardClick ( org . id ) }
130130 >
131- { isActive && (
132- < div className = "absolute top-3 right-3" >
133- < Badge variant = "secondary" >
134- < CheckIcon className = "mr-1 h-3 w-3" size = { 12 } />
135- Active
136- </ Badge >
137- </ div >
138- ) }
139-
140131 { isProcessing && (
141132 < div className = "absolute inset-0 flex items-center justify-center bg-background/50 backdrop-blur-sm" >
142133 < div className = "h-6 w-6 animate-spin rounded-full border border-primary/30 border-t-primary" />
143134 </ div >
144135 ) }
145136
146- < CardContent >
147- < div className = "space-y-3" >
148- { /* Organization Info */ }
149- < div className = "flex items-start gap-3" >
150- < Avatar className = "size-9 shrink-0" >
151- < AvatarImage alt = { org . name } src = { org . logo || undefined } />
152- < AvatarFallback
153- className = { cn (
154- "font-medium text-xs" ,
155- isActive ? "bg-secondary-brightest" : "bg-accent"
156- ) }
157- >
158- { getOrganizationInitials ( org . name ) }
159- </ AvatarFallback >
160- </ Avatar >
161- < div className = "min-w-0 flex-1" >
162- < h3 className = "mb-2 truncate font-semibold text-base" >
163- { org . name }
164- </ h3 >
165- < p className = "truncate text-muted-foreground text-sm" >
166- @{ org . slug }
167- </ p >
168- < div className = "mt-0.5 flex items-center gap-1" >
169- < CalendarIcon
170- className = "h-3 w-3 text-muted-foreground"
171- size = { 12 }
172- />
173- < span className = "text-muted-foreground text-sm" >
174- Created { dayjs ( org . createdAt ) . fromNow ( ) }
175- </ span >
176- </ div >
137+ < CardContent className = "flex flex-col flex-wrap items-start justify-between gap-6 sm:flex-row" >
138+ { isActive && (
139+ < Badge
140+ className = "order-first xl:order-last"
141+ variant = "secondary"
142+ >
143+ < CheckIcon className = "size-3" />
144+ Active
145+ </ Badge >
146+ ) }
147+ < div className = "flex flex-col items-start gap-3 space-y-3 md:flex-row" >
148+ < Avatar className = "size-9 shrink-0" >
149+ < AvatarImage alt = { org . name } src = { org . logo || undefined } />
150+ < AvatarFallback
151+ className = { cn (
152+ "font-medium text-xs" ,
153+ isActive ? "bg-secondary-brightest" : "bg-accent"
154+ ) }
155+ >
156+ { getOrganizationInitials ( org . name ) }
157+ </ AvatarFallback >
158+ </ Avatar >
159+ < div className = "min-w-0 flex-1" >
160+ < h3 className = "mb-2 truncate font-semibold text-base" >
161+ { org . name }
162+ </ h3 >
163+ < p className = "truncate text-muted-foreground text-sm" >
164+ @{ org . slug }
165+ </ p >
166+ < div className = "mt-1 flex items-center gap-1" >
167+ < CalendarIcon
168+ className = "size-3 text-accent-foreground"
169+ weight = "duotone"
170+ />
171+ < span className = "text-muted-foreground text-xs" >
172+ Created { dayjs ( org . createdAt ) . fromNow ( ) }
173+ </ span >
177174 </ div >
178175 </ div >
179176 </ div >
0 commit comments