Skip to content

Commit

Permalink
fix: skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
nxhawk committed Jun 21, 2024
1 parent 659fdcc commit 72c4d57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Loading/ListNovelSkeleton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const ListNovelSkeleton = ({ children }: { children: React.ReactNode }) => {
return (
<div>
{children}
<div className="grid grid-cols-1 gap-y-5 gap-x-5 lg:grid-cols-2">
{[...Array(10)].map((_, idx) => (
<div className="grid grid-cols-1 gap-y-5 gap-x-5 lg:grid-cols-2 2xl:grid-cols-3">
{[...Array(12)].map((_, idx) => (
<BoxNovel isLoading={true} key={idx} />
))}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const Slider = ({ isLoading = false }: Props) => {
{isLoading || !slider || slider.trim().length <= 0 ? (
<Skeleton className="h-20 lg:h-48" />
) : (
<LoadingImage imageUrl={slider} name="slider" className="w-full cursor-pointer max-h-[318px]" isSlider={true} />
<LoadingImage imageUrl={slider} name="slider" className="w-full cursor-pointer max-h-[400px]" isSlider={true} />
)}
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/layout/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ButtonSettings from "../components/Button/Settings/ButtonSettings";

const Layout = () => {
return (
<div className={`px-10 min-h-screen mx-auto relative overflow-x-hidden`}>
<div className={`px-0 md:px-10 min-h-screen mx-auto relative overflow-x-hidden`}>
<Header />
<main className="p-1">
<Outlet />
Expand Down

0 comments on commit 72c4d57

Please sign in to comment.