Skip to content

Commit

Permalink
Switch to 2 containers for lg
Browse files Browse the repository at this point in the history
  • Loading branch information
DonXavierdev committed Feb 3, 2025
1 parent cd890ef commit f158583
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/components/Users/UserListAndCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ export const UserStatusIndicator = ({
<span className="text-xs text-green-700">{t("online")}</span>
</Badge>
) : user.last_login ? (
<Badge
variant="secondary"
className="bg-yellow-100 whitespace md:px-0 md:py-0 "
>
<Badge variant="secondary" className="bg-yellow-100 whitespace-nowrap">
<span className="inline-block h-2 w-2 shrink-0 rounded-full bg-yellow-500 mr-2" />
<span className="text-xs text-yellow-700">
{relativeTime(user.last_login)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default function FacilityOrganizationUsers({ id, facilityId }: Props) {
</div>
</div>

<div className="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-4">
<div className="grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-3 gap-4">
{users?.results?.length === 0 ? (
<Card className="col-span-full">
<CardContent className="p-6 text-center text-gray-500">
Expand All @@ -115,7 +115,7 @@ export default function FacilityOrganizationUsers({ id, facilityId }: Props) {
{userRole.user.first_name} {userRole.user.last_name}
</h1>
<span className="text-sm text-gray-500">
<span className="mr-2 md:break-words">
<span className="mr-2">
{userRole.user.username}
</span>
<UserStatusIndicator user={userRole.user} />
Expand Down

0 comments on commit f158583

Please sign in to comment.