No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Hot to dynamically fit / scale multiple Q-Img in row container?

    Help
    2
    2
    593
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mrvn last edited by mrvn

      When I am trying to fit multiple or even just one image(s) into the container, the image size is exceeding the row and even the page size, which causes the page to scroll.

      I want the images to scale to the middle row, not interfering with any of the other rows at all.

      I had a deep look into the css guide and tried a lot of different class / element combinations, but I just doesn’t work…
      Basically my template looks like the following:

      <q-page-container>
        <q-page>
          <div class="row">
            ...
          </div>
          <div class="row">
            <div class="col" v-for="img in images">
              <q-img contain :src="img.src" />
            </div>
          </div>
          <div class="row">
            ...
          </div>
          </div>
        </q-page>
      </q-page-container>
      
      1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel last edited by dobbel

        @mrvn
        We can help you better if you create a codepen to demonstrate the problem.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post