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

Adapt better to narrow screens #1633

Open
gwicke opened this issue Jun 13, 2016 · 10 comments
Open

Adapt better to narrow screens #1633

gwicke opened this issue Jun 13, 2016 · 10 comments
Labels
A11y A-Room-View O-Occasional Affects or can be seen by some users regularly or most users rarely T-Enhancement
Milestone

Comments

@gwicke
Copy link

gwicke commented Jun 13, 2016

Narrow screens are common on mobile, and when using vector in a narrow sidebar-style window on a desktop. Here are some styling ideas that could help to maximize the content visible on small screens:

  • Completely hide the user list by default.
  • Hide user icons in chat messages, and reduce margins around messages to a bare minimum. Possibly, set off user names / message boundaries slightly by making them left-bound, and indenting messages a couple of pixels.
@gwicke
Copy link
Author

gwicke commented Jun 13, 2016

Rough sample styles:

/* Hide link previews (TODO: switch them off) */
.mx_LinkPreviewWidget {
    display: none
}
@media screen and (max-width: 800px) {
    /* Reduce spacing */
    .mx_EventTile_avatar {
        display: none
    }
    .mx_EventTile {
        margin-left: 0;
        margin-top: 5px;
    }
    .mx_EventTile_line {
        margin-left: 12px;
        margin-right: 10px;
    }
    .mx_MatrixChat_middlePanel {
        padding-right: 0px !important;
        padding-left: 5px !important;
    }
    .mx_RoomView_statusAreaBox {
        min-height: 0;
    }
    .mx_RoomStatusBar {
        margin-top: 0;
        min-height: 0;
    }
    .mx_RightPanel {
        display: none;
    }
    .mx_MessageComposer_avatar {
        padding-right: 10px;
        padding-left: 10px;
    }
    .mx_MessageComposer_upload,
    .mx_MessageComposer_voicecall,
    .mx_MessageComposer_videocall {
        padding-left: 3px;
        padding-right: 3px;
    }
}

@gwicke gwicke mentioned this issue Jun 13, 2016
@ara4n
Copy link
Member

ara4n commented Jun 14, 2016

Thanks - totally agreed we need a narrower mode; will look at incorporating this. Thanks!

@gwicke
Copy link
Author

gwicke commented Jun 14, 2016

Render with styles above:

image

@ara4n ara4n added feature P2 S-Tolerable Low/no impact on users labels Jun 18, 2016
@ara4n ara4n added this to the v3 - GA milestone Jun 18, 2016
@ara4n
Copy link
Member

ara4n commented Sep 13, 2016

completely hiding the userlist has now landed on /develop.
we're working on compact CSS for the timeline itself.

@JasonLocklin
Copy link

JasonLocklin commented Jul 19, 2017

Things have improved, but are still not quite usable at very small window size. It would be nice to be able to put, for instance, a 1:1 chat in a small window to the side of the work are on the desktop.

Current state of Riot web (develop), with "compact layout" enabled, with a small window:
smallwindow

Note that the composer is unusably narrow, and margins around the message list text make it display very inefficiently.

Here is a comparison with glowingbear, at a similar text size, at an even smaller window size. Note that glowingbear is completely usable at this size and riot is completely unusable.
smallscreen2

I think the message list and the composer area should have a minimum width specified so that they are preserved in a usable state as long as possible -at the expense of whitespace margins and other areas. As an example, with a min-width of 400px for .mx_RoomView_messageListWrapper and .mx_MessageComposer_wrapper:
min-width

The Attachment/Voip buttons are off to the side (note the scroll bar), but could be their own div, and could pop (wrap) down to a second row when the window is too narrow for both the compose area and those buttons.

Overall, there is still room in various whitespace areas to more efficiently fill a small window. For the message list, most of the gain would come from changing the way the text flows around/below user icons/read receipts. For instance, paragraphs could be wrapped as wide as the whole message list like this:

| (O) User: () () () ()  |<- read recipts
| Text that is the full  |
| message list  width... |

@drue
Copy link

drue commented Nov 29, 2017

Link summaries should probably float below the thumbnail.

image

@lpar
Copy link

lpar commented Jun 12, 2019

To add to the previous comment, here's what my system alerts looked like when I logged in just now:

Selection_001

@aaronraimist
Copy link
Collaborator

Example of how bad Riot is right now with the memberlist: https://twitter.com/Obijuan_cube/status/1239860893539864576

@tredondo
Copy link

tredondo commented Apr 27, 2020

image

Quoting totally kills the width.

@MadLittleMods
Copy link
Contributor

MadLittleMods commented Sep 2, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A11y A-Room-View O-Occasional Affects or can be seen by some users regularly or most users rarely T-Enhancement
Projects
None yet
Development

No branches or pull requests