Skip to content

Commit

Permalink
fix: fix layout shift in search page
Browse files Browse the repository at this point in the history
  • Loading branch information
RyukTheCoder committed Jan 18, 2025
1 parent abd24ff commit d540eb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/common/Table/TableLoading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import TableHead from './TableHead';
import { Skeleton } from '../Skeleton';
import Link from 'next/link';
import { TableLoadingProps } from './Table.type';
import isMobile from 'is-mobile';

function TableLoading(props: TableLoadingProps) {
const id = useId();
Expand All @@ -15,7 +16,7 @@ function TableLoading(props: TableLoadingProps) {
{title}
</h2>
<div className="text-12 md:text-16 text-neutral-800">
<Skeleton width={300} height={10} />
<Skeleton width={300} height={isMobile() ? 18 : 24} />
</div>
</div>
<div className="md:mt-25">
Expand Down

0 comments on commit d540eb7

Please sign in to comment.