Skip to content

Commit 59f3cc1

Browse files
only display top 5 users on mobile
1 parent 5e9cc9d commit 59f3cc1

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/components/users/Users.tsx

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ const Users = () => {
132132
.slice(
133133
SCREEN_WIDTH === 'MOBILE'
134134
? 0
135-
: 4
135+
: 4,
136+
SCREEN_WIDTH === 'MOBILE'
137+
? 5
138+
: users.length
136139
)
137140
.map((item) => (
138141
<AccordionItem
@@ -167,20 +170,20 @@ const Users = () => {
167170
<Card className="gap-4 h-full">
168171
<CardHeader>
169172
<CardTitle>
170-
<Skeleton className="h-[20px] w-[172px] max-w-3/5 mb-6 rounded-full" />
171-
<Skeleton className="h-[20px] w-[172px] max-w-3/5 mb-6 rounded-full" />
172-
<Skeleton className="h-[16px] w-[128px] max-w-2/5 mb-2 rounded-full" />
173-
<Skeleton className="h-[16px] w-[96px] max-w-1/5 mb-10 mt-12 sm:mt-0 sm:mb-7 md:mb-8 lg:mb-6 rounded-full" />
173+
<Skeleton className="h-[20px] w-[172px] max-w-3/5 mb-6 rounded-full hidden sm:flex" />
174+
<Skeleton className="h-[18px] sm:h-[20px] w-[172px] max-w-3/5 mb-6 rounded-full" />
175+
<Skeleton className="h-[14px] sm:h-[16px] w-[128px] max-w-2/5 mb-2 rounded-full" />
176+
<Skeleton className="h-[14px] sm:h-[16px] w-[96px] max-w-1/5 mb-3 sm:mb-7 md:mb-8 lg:mb-6 rounded-full" />
174177
<Skeleton className="h-[4px] w-full mb-6 rounded-none border-b-2 bg-transparent" />
175-
<Skeleton className="h-[20px] w-[172px] max-w-3/5 mb-10 mt-12 sm:mt-0 sm:mb-7 md:mb-8 lg:mb-6 rounded-full" />
178+
<Skeleton className="h-[18px] sm:h-[20px] w-[172px] max-w-3/5 mb-3 sm:mb-7 md:mb-8 lg:mb-6 rounded-full" />
176179
<Skeleton className="h-[4px] w-full mb-6 rounded-none border-b-2 bg-transparent" />
177-
<Skeleton className="h-[20px] w-[172px] max-w-3/5 mb-10 mt-12 sm:mt-0 sm:mb-7 md:mb-8 lg:mb-6 rounded-full" />
180+
<Skeleton className="h-[18px] sm:h-[20px] w-[172px] max-w-3/5 mb-3 sm:mb-7 md:mb-8 lg:mb-6 rounded-full" />
178181
<Skeleton className="h-[4px] w-full mb-6 rounded-none border-b-2 bg-transparent" />
179-
<Skeleton className="h-[20px] w-[172px] max-w-3/5 mb-10 mt-12 sm:mt-0 sm:mb-7 md:mb-8 lg:mb-6 rounded-full" />
182+
<Skeleton className="h-[18px] sm:h-[20px] w-[172px] max-w-3/5 mb-3 sm:mb-7 md:mb-8 lg:mb-6 rounded-full" />
180183
<Skeleton className="h-[4px] w-full mb-6 rounded-none border-b-2 bg-transparent" />
181-
<Skeleton className="h-[20px] w-[172px] max-w-3/5 mb-10 mt-12 sm:mt-0 sm:mb-7 md:mb-8 lg:mb-6 rounded-full" />
184+
<Skeleton className="h-[18px] sm:h-[20px] w-[172px] max-w-3/5 mb-3 sm:mb-7 md:mb-8 lg:mb-6 rounded-full" />
182185
<Skeleton className="h-[4px] w-full mb-6 rounded-none border-b-2 bg-transparent" />
183-
<Skeleton className="h-[20px] w-[172px] max-w-3/5 rounded-full" />
186+
<Skeleton className="h-[18px] sm:h-[20px] w-[172px] max-w-3/5 rounded-full" />
184187
</CardTitle>
185188
</CardHeader>
186189
</Card>

0 commit comments

Comments
 (0)