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

    Issue with breakpoints when used with justify-center

    Framework
    2
    3
    721
    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.
    • L
      leoprada last edited by

      Hi guys. I’m having this issue, i searched in the forum but didn’t find anything related.

      I am trying to use justify-center for small screens and justify-end for large screens. Reading the docs i found this:

      0_1536987262017_imagen.png

      So I tried to use it as justify-sm-center and justify-lg-end but haven’t got to make it work like so. I made this fiddle for demonstrate it:

      https://jsfiddle.net/leoprada/3b40vn6g/

      I don’t really know if I am doing something wrong.

      (I know how to make it work by my own using CSS but I’d rather using the predefined quasar class, of course)

      1 Reply Last reply Reply Quote 0
      • G
        genyded last edited by

        I don’t think the breakpoints work on rows (only items within rows), so I think to do what you want, you would have to use the Quasar Screen Plugin with Vue Class Bindings. Something like:

        <div class="row">
                  <p>Class: justify-center</p>
                  <div class="row col-12 bg-black"
                    :class="[$q.screen.gt.md ? 'justify-left' : 'justify-center']">
                    <div class="col-4 bg-blue q-py-md text-center">
                      Col-4
                    </div>
                    <div class="col-4 bg-green q-py-md text-center">
                      Col-4
                    </div>
                  </div>
                </div>
        
        L 1 Reply Last reply Reply Quote 1
        • L
          leoprada @genyded last edited by

          @genyded will try this. Thank you!

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