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

Open sidebar automatically when joining a room #516

Merged
merged 1 commit into from
Dec 5, 2017

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Dec 1, 2017

Fixes #461

The sidebar has a width of 27% of the window width and a minimum width of 300px. Therefore, when the window is 1111px wide or narrower the sidebar will always be 300px wide, and when that happens it will overlap with the content area (the narrower the window the larger the overlap); this will be more evident once the chat view is shown as the main view. Due to this the sidebar is opened automatically only if it will not overlap with the content area.

With this change if the window is wide enough the sidebar will always be opened when joining a room. Should we try to be more clever about that (and take into account that soon the main view will show not only video, but also a chat when not in a call)? For example, if the user joins a room and closes the sidebar without joining a call (so she was just chatting) it may be better to not open the sidebar automatically if she changes to another room. But if she closed the sidebar because she was in a call maybe she expects it to open when joining a new room... or maybe not. It is hard to know what a user expects :-) Due to that I opted for the current approach, which is always consistent, sometimes maybe annoying ;-)

Below certain window width the sidebar starts overlapping with the
content area, so the sidebar is automatically open only if it will not
overlap with the content.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@Ivansss Ivansss merged commit d51face into master Dec 5, 2017
@Ivansss Ivansss deleted the open-sidebar-automatically-when-joining-a-room branch December 5, 2017 09:14
marcoambrosini pushed a commit that referenced this pull request Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Open the sidebar when joining a room
2 participants