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

    custom size components

    Framework
    2
    8
    1103
    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
      frankz last edited by

      I saw that the “dense” attribute exists, but it is not enough.
      Furthermore, I saw that there is also the “height” attribute, but I can’t understand how it works.
      is it possible to set the custom size of a component as input textfield?

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

        There is no height prop (did you mean prop?) in QInput.

        You can do whatever you want via CSS. Inspect the component’s output in Chrome Devtools and rewrite/ override the CSS used in your component.

        https://codepen.io/smolinari/pen/GRJbmWQ

        Please note, I’m not a designer so what I’ve put in the codepen should be considered experimental. It’s just for the sake of demonstration.

        Scott

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

          thanks.
          I’m sorry, you’re right, I got confused.
          now I will try to play with the link to codepen

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

            I can’t understand where the css classes should be selected.
            in my case the component I’m talking about is:
            <q-input v-model=“text” label=“Label” :dense=“dense” />
            perchè non riesco a vedere nessun cambiamento

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

              What do you mean by selected @frankz ?

              Scott

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

                in the codepen link, I see that there are 3 parts HTML, CSS and VUE.
                in the CSS part there are the classes that change the values, but I have not understood where in <DIV> or <q-input> I have to define the class that interests me (eg q-field__control).

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

                  You find them by inspecting the element in something like Chrome devtools.

                  This.

                  4bddcd9b-325d-41db-b497-48947d3558e9-image.png

                  Scott

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

                    I’ll try.
                    Thank you

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