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

    How do I get button to take same vertical height as input fields?

    Help
    4
    5
    1093
    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.
    • F
      Fancellu last edited by

      e.g. https://codepen.io/fancellu/full/gyrOgp

      I’d like the blue button to get taller, to fill the row to the same height as the input fields

      Or maybe make it flat and centre it vertically?

      Thanks

      1 Reply Last reply Reply Quote 0
      • F
        Fancellu last edited by

        Aha, found out one way

        <q-field borderless>
        <q-btn label=“RECENT” icon=“refresh” color=“primary”></q-btn>
        </q-field>

        1 Reply Last reply Reply Quote 1
        • M
          mKomo last edited by

          I believe there is a stretch prop that allows you to do this

          From the docs:
          Name: stretch
          Type: Boolean
          Description: When used on flexbox parent, button will stretch to parent’s height

          1 Reply Last reply Reply Quote 0
          • luckylooke
            luckylooke last edited by

            Thank you @Fancellu, you helped me.
            Here is quick DEMO https://codepen.io/luckylooke/pen/WNQQLym
            🙏

            1 Reply Last reply Reply Quote 0
            • metalsadman
              metalsadman last edited by metalsadman

              You can also do it with just QInput and overriding css https://codepen.io/metalsadman/pen/gOpMMxz.

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