Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make design adaptive to vertical screen layouts. #9221

Closed
jonhoo opened this issue Nov 6, 2018 · 5 comments
Closed

Make design adaptive to vertical screen layouts. #9221

jonhoo opened this issue Nov 6, 2018 · 5 comments
Labels
suggestion Feature suggestion

Comments

@jonhoo
Copy link

jonhoo commented Nov 6, 2018

Pitch

I have my main monitor rotated 90° so that it is taller than it is wide. This is great for most websites, as it allows more of the main content of the page to be visible at a time, and for websites like Twitter, it enables me to see more tweets at a glance. However, this layout works very poorly with Mastodon with its horizontally stacked columns. It'd be awesome if there was a way to switch to a layout (whether manual or automatic) that did not require so much horizontal space. Perhaps something like the Android App or twitter.com layouts where you have different pages for notifications and lists?

Motivation

Locking the design to one that requires horizontal screen width isn't ideal, as we are only seeing more diversity in device form factors, whether phones and tables or rotated monitors like mine. I also think there's value in recognizing that Twitter has likely spent a lot of time investigating what layout works best, and they have stuck with the "a page per view" layout instead of allowing multiple columns. Perhaps that's something we should at least support as well?

@jonhoo jonhoo changed the title Make layout adaptive to vertical screen layouts. Make design adaptive to vertical screen layouts. Nov 6, 2018
@jonhoo
Copy link
Author

jonhoo commented Nov 6, 2018

@media screen and (min-width: 631px) {
    :not(#mastodon-timeline) > .column, :not(#mastodon-timeline) > .drawer {
        flex: 1 0.5 500px;
        height: 50%;
    }
    :not(#mastodon-timeline) > .columns-area {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

Helps a little bit by dividing the design into two rows with two columns in each, but doesn't scale very well if you have any topic pinned.

@Gargron Gargron added the suggestion Feature suggestion label Nov 14, 2018
@Angular-Angel
Copy link

I wish there were more ways to view content on Mastodon in general. For example, the ability to open a list or two in a new tab and view them there, and reply to them there, or the ability to view a post and it's replies in a tree graph like I've been trying to implement in Agora: https://agora-2866.nodechef.com. :/

@nightpool
Copy link
Member

@Angular-Angel The Mastodon front-end UI only one client app and only one design—ways to view content that are radically different are better implemented by separate clients that either speak Mastodon's client protocol or the ActivityPub server protocol.

@nightpool
Copy link
Member

I'm sympathetic to the idea that we should adapt to different screen sizes, but it's also true that we already have two different layouts (a single-column view for mobile, and a multi-column view for desktop), and i'm not sure if the "large rotated screen" setup is common enough to warrant maintaining another whole layout.

@jonhoo that said, i would be interested in seeing a screenshot of your CSS snippet on your monitor!

@Tagadda
Copy link

Tagadda commented Dec 4, 2018

@nightpool
image

@trwnh trwnh closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Feature suggestion
Projects
None yet
Development

No branches or pull requests

6 participants