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

    QTable mobile style

    Help
    3
    4
    574
    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.
    • R
      RobbeV last edited by RobbeV

      Dear all,
      I’m a big fan of the QTable look and feel when I open it on my smartphone. The table is nicely centered on page and does not show scroll bars.
      Whenever I use it on dekstop however, the table extends to its full width, the bars appear and everything else centered on the pages shifts to the right due to the page being wider. I’ve included some pictures and the code as reference.

      <q-table
            v-if="list"
            :data="list"
            :columns="columns"
            row-key="id"
            :filter="filter"
            :filter-method="filterIgnoreSpecialCharacters"
            flat
            bordered
            hide-bottom
            binary-state-sort
            :pagination.sync="pagination"
          > ... <q-table>
      

      Does anyone know how I can mimic the look and feel of the mobile version, or how do I force it to render as a mobile table?

      Thanks in advance!
      Robbe

      Mobile

      Mobile (up) vs Desktop (down)

      Desktopt

      1 Reply Last reply Reply Quote 0
      • R
        RobbeV last edited by

        Not really necessary anymore, since I made a workaround using CSS calc() and custom scrollbars.

        I do think however the solution to force mobile view would be nice to know.

        Thanks for taking a look.

        Y 1 Reply Last reply Reply Quote 1
        • Y
          yo @RobbeV last edited by

          @RobbeV what about using a table inside virtual scroll ? It could solve the desktop problem, but change the mobile style.

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

            q-tables are a bad experience on mobile right now with the current visual behavior ( no scrollbars or the lack of visual aids). Depending on the visible table content you sometimes have no idea that the table has more ‘hidden’ content/columns and is scrollable.

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