правки поехавшей разметки

This commit is contained in:
Kayashov.SM
2025-09-29 15:30:48 +04:00
parent 0c68dd6b6b
commit b2854a9010
5 changed files with 66 additions and 59 deletions

View File

@@ -29,16 +29,17 @@ const Home = () => {
</Accordion.Header>
<Accordion.Body>
<Row className='row-cols-auto'>
{loading ?
(
// Отображаем 10 скелетонов
Array.from({length: 10}, (_, index) => (
<Col key={`skeleton-${index}`}>
<SkeletonCompact key={index} width={300} height={400}/>
</Col>
))
)
: movies.map(rec => (
{/*{loading ?*/}
{/* (*/}
{/* // Отображаем 10 скелетонов*/}
{/* Array.from({length: 10}, (_, index) => (*/}
{/* <Col key={`skeleton-${index}`}>*/}
{/* <SkeletonCompact key={index} width={300} height={400}/>*/}
{/* </Col>*/}
{/* ))*/}
{/* )*/}
{/* :*/}
{movies.map(rec => (
<Col key={`col-${rec.title}-${rec.year}`}>
<CardCompact item={rec} key={`${rec.title}-${rec.year}`}/>
</Col>