Skip to content

Commit aeda28e

Browse files
committed
Fix: skeleton responsiveness
1 parent 23162da commit aeda28e

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/components/home/score-card/skeleton.jsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@ import { Skeleton } from "@sliit-foss/bashaway-ui/components";
22

33
const ScoreCardSkeleton = () => {
44
return Array.from({ length: 4 }).map((_, i) => (
5-
<Skeleton key={i} className="px-6 py-5 rounded-2xl flex w-full justify-between items-center">
5+
<Skeleton key={i} className="px-6 py-5 rounded-2xl flex flex-wrap w-full justify-between items-center" single>
66
<div className="flex gap-6 items-center">
7-
<Skeleton shade="dark" className="w-[64px] h-[64px] rounded-2xl" />
7+
<Skeleton shade="dark" className="w-14 sm:w-16 h-14 sm:h-16 rounded-2xl" />
88
<div className="flex flex-col gap-1">
9-
<Skeleton shade="dark" className="h-[24px] w-24 mb-[5px]" />
9+
<Skeleton shade="dark" className="h-[24px] w-28 mb-[5px]" />
1010
<Skeleton shade="dark" className="h-[18px] w-[72px] rounded-2xl" />
1111
</div>
1212
</div>
13-
<Skeleton shade="dark" className="px-5 py-3 rounded-full min-w-[116px] h-12" />
13+
<Skeleton
14+
shade="dark"
15+
containerClassName="min-w-[116px] w-full sm:w-auto"
16+
className="px-5 py-1.5 sm:py-3 rounded-full w-full h-12 sm:h-14 mt-4 sm:mt-0"
17+
/>
1418
</Skeleton>
1519
));
1620
};

src/components/layout/footer.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ const Footer = ({ className }) => {
2828
<div className="flex flex-col items-center md:items-start gap-y-5 col-start-1">
2929
<FOSS />
3030
<p className="md:w-[320px] px-2 sm:px-0 text-sm text-center md:text-left text-gray-500 opacity-80 font-consolas">
31-
Welcome to the SLIIT FOSS Community. We&apos;re a group of volunteers who believe in the usage of Free and Open
32-
Source Software (FOSS)
31+
Welcome to the SLIIT FOSS Community. We&apos;re a group of volunteers who believe in the usage of Free and
32+
Open Source Software (FOSS)
3333
</p>
3434
<div className="font-semibold text-[20px] font-cabinet">CONNECT WITH US</div>
3535
<div className="flex space-x-3 flex-shrink-0 -ml-0.5">

0 commit comments

Comments
 (0)