horizontal ion-card

Asked

Viewed 475 times

0

Has some form of ion-card grow horizontally and not vertically?

It is populated by data that comes from the api

<ion-card *ngFor="let filmes of lista_filmes_popular">
        <img [src]="'https://image.tmdb.org/t/p/w500/' + filmes.backdrop_path" />
        <ion-card-content>
          <ion-card-title>
            {{filmes.original_title}}
          </ion-card-title>
          <p>
            {{filmes.overview}}
          </p>
        </ion-card-content>
      </ion-card>

There’s some way in his Ionic to go horizontally and have a horizontal scroll?

  • Have you tried placing inside a div or Section and enabling the horizontal scroll in that div/Section? I think you can use the ion-scroll itself for that too

  • I did, but it totally decreases the size and gets thin the image, and there’s nothing

  • See if this helps you: https://forum.ionicframework.com/t/ion-cards-in-a-horizontal-scroll-possible/84746. If you don’t know English I put the answer here in Portuguese

1 answer

1


Browser other questions tagged

You are not signed in. Login or sign up in order to post.