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

    Tabs Styling - Full Width / Justify on Desktop

    Help
    3
    5
    2529
    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.
    • uebbi
      uebbi last edited by

      When using tabs on Desktop / Middle / Larger screens they are stacked besides each other on left - this is a default behavior (Image 1).

      I wanted that stay full width / justified (Image 2).

      Some help?

      From this:

      alt text

      To this:

      alt text

      Code:

      <quasar-tabs class="bg-teal-4 text-white" slot="navigation">
        <quasar-tab icon="home"  route="/foo" exact replace>Foo</quasar-tab>
        <quasar-tab icon="alarm" route="/bar" exact replace>Bar</quasar-tab>
        <quasar-tab icon="help"  route="/zig" exact replace>Zig</quasar-tab>
      </quasar-tabs>
      1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        .quasar-tabs-scroller, .quasar-tab
            flex 1 1 auto
        
        1 Reply Last reply Reply Quote 0
        • uebbi
          uebbi last edited by

          Tks @rstoenescu ! It worked.

          I think could exist a class ‘Fixed’ like in Vue Material for this.

          Anyway, thank you so much!

          1 Reply Last reply Reply Quote 0
          • rstoenescu
            rstoenescu Admin last edited by

            Will make a specific CSS class for this. Thanks for pointing this out.

            1 Reply Last reply Reply Quote 0
            • P
              pepe pipo last edited by pepe pipo

              It does not work for me

              <q-tabs>
                      <q-tab slot="title" icon="input"/>
                      <q-tab slot="title" icon="input"/>
              </q-tabs>
              ...
              <style scoped>
              .-tabs-scroller, .q-tab {
                  flex: 1 1 auto;
              }
              </style>
              

              PD: @rstoenescu did you made the specifil class?

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