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

    Responsive split layout

    Help
    4
    13
    4335
    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.
    • matt
      matt last edited by

      I’m trying to create a split layout for a mail application. The first third of the width is a list of messages and the other two-thirds of the width is the body of the currently-selected message.

      This works fine on desktop but there is simply not enough room on mobile. I would ideally like a full-width list that transitions to a full-width contents view when a message is selected, with a back button the return to the list. However, I would still like the split view on desktop.

      Do you have any suggestions on what I could look at to achieve this?

      Many thanks 🙂

      1 Reply Last reply Reply Quote 0
      • N
        n.taddei last edited by

        I were trying to make the exactly same thing for my application, but I wasn’t able to find an elegant solution, so I left that idea.
        The only way is to use 2 separated programmatic routes using Quasar platform detection.
        Something kind:

        if (Platform.is('mobile')) {
          router.push('my-mobile-route')
        } else {
          router.push('my-desktop-subroute')
        }
        

        Where:

        • 'my-desktop-subroute' is an inbox child route that fills your Inbox component <router-view></router-view> (the right side of the screen)
        • 'my-mobile-route' is a seprated route that fills main <router-view></router-view> tag replacing Inbox component.

        But as you see it’s quite messy, so I decided to forget it.
        If you’ll figure out a better solution, could you post it, so I can implement that too?

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

          Could a drawer work for the list of emails? It automatically shows on the side on large screens.

          Scott

          N 1 Reply Last reply Reply Quote -1
          • N
            n.taddei @s.molinari last edited by

            @s.molinari I think that a drawer it’s not what he wants.
            Of course, it could work in desktop mode, but when it turns to mobile, drawer will open from left side and main screen it’s filled by opened email component.
            What @matt wants was the inbox emails list in main screen and the single email open when tapping on list item, instead.
            Like Gmail Android app, just for clear.

            1 Reply Last reply Reply Quote 0
            • M
              Max last edited by

              really interested in your solution… im working on an mail project too

              1 Reply Last reply Reply Quote 1
              • N
                n.taddei last edited by

                @rstoenescu do you have something for us? 🙂

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

                  Thanks for all of your possible solutions. I was thinking of a layout similar to this:

                  http://polymerelements.github.io/app-layout-templates/

                  The drawer is on the far left and hidden on mobile. This functionality comes out of the box with Quasar. The complicated bit is with the split layout of menu list and content detail. Have a look at that demo to see how it works on different screen sizes.

                  –Matt

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

                    Now that we have a good visual example, it is much clearer what your working towards. Thanks for that.

                    Unfortunately, the current version of Quasar doesn’t directly support building that type of progressive layout. Version 0.14 will however. In fact, the new layout is one of the bigger highlights of 0.14. Sorry that doesn’t help you directly now. If you want, the alpha of 0.14 is currently available under the “dev” branch in the Quasar repo. You could take a look at where the new layout is heading.

                    Scott

                    N 1 Reply Last reply Reply Quote 1
                    • N
                      n.taddei @s.molinari last edited by

                      @s.molinari Did you tried alpha version?
                      Because from Razvan description on new version announcement, it’s not clear if that solution will be possible or not.
                      It just says that we’ll have many more possibilities, but not wich ones.

                      Thank you!

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

                        Yes, Razvan’s description of the new version is quite modest. 😄

                        To get into all the possibilities means we need to actually document them and we are working on that right now. Until they are documented, the possibilities might not be directly apparent. So, yeah. Sorry about that. We’re working on the docs, as we speak. 😄

                        Scott

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

                          I’ll tell you what. Once I get spinner and the new observable sections out of the way, I’ll jump on layout to get it documented for you. Ok? 😄

                          Scott

                          1 Reply Last reply Reply Quote 2
                          • N
                            n.taddei last edited by

                            Thanks @s-molinari , I didn’t know you were working on docs… We’ll wait then, many thanks!! 🙂

                            1 Reply Last reply Reply Quote 1
                            • matt
                              matt last edited by

                              Thanks @s.molinari for that info. I’m even more excited for the 0.14 release now 🙂

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