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

    [Solved] QInput How to adjust the top/bottom padding if it is without a label

    Framework
    4
    8
    1107
    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.
    • S
      Stanley last edited by Stanley

      Dear Quasar team,

      I did a demo to illustrate this requirement, could you please have a look?
      https://codepen.io/Stanley-549393092/pen/QWGgYPy?editors=1010

      I would like to narrow the top/bottom padding (that means the height of q-input will be narrowed), because it occupies some space.
      I tried to use custom style to override the default setting, but failed.
      Do you have some idea? Thanks for your help!
      2021-02-19_16-26-31.png

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        Have you tried the dense prop?

        Scott

        S 1 Reply Last reply Reply Quote 0
        • S
          Stanley @s.molinari last edited by

          @s-molinari yes, the demo is based on dense property.

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

            Inspect element see the css and override them.

            S 1 Reply Last reply Reply Quote 0
            • S
              Stanley @metalsadman last edited by

              @metalsadman Thanks! I tried that but failed. Shall I focus on the class ‘q-field__control-container’ or ‘q-field__native’?
              2021-02-19_18-17-40.png

              1 Reply Last reply Reply Quote 0
              • s.molinari
                s.molinari last edited by

                Sorry, should have looked better.

                See here: https://codepen.io/smolinari/pen/qBqjzmQ

                Scott

                S 1 Reply Last reply Reply Quote 1
                • S
                  Stanley @s.molinari last edited by

                  @s-molinari Thank you! It works now.

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

                    Yes its work fine, thanks

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