-
Notifications
You must be signed in to change notification settings - Fork 452
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
Add ability to collapse the grid view #4363
Conversation
f9a3e22
to
0d4ca32
Compare
After talking with @ma12-co we decided to keep my PR and I've taken a similar approach from #4365 and added (and fixed) the slide animation. Next up is extracting the local call controls to a higher layer to make them always visible and available even when collapsed. |
|
459535b
to
d257ed8
Compare
most stuff sorted out, but one thing remaining:
I do wonder if there is another kind of interaction we could use to show that warning and not clutter that bottom right corner with a bubble. |
d257ed8
to
f10fbae
Compare
Please review. I'm optimistic that it will work in sidebar mode correctly, but still want to confirm. I can't test that bit because of a server issue nextcloud/server#23445 |
(tested using this PR merged with #4291) |
I've fixed the sidebar mode. It required me to move the LocalMediaControls from the Grid to the CallView. I've also tested the "network connection warning" mode and it looks fine in sidebar mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- shouldn't this transition be applied to the .grid-main-wrapper div?
At the moment the transition feels a bit weird, it seems like .grid-main-wrapper comes in without transition and its content slides up in it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when testing I had the latest nextcloud-vue master included. |
Got it, the exact steps are:
The reason is that Too many states :-S |
572f940
to
341a206
Compare
@ma12-co I've fixed the issue when switching back and forth to grid while collapsed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing :)
One last cool thing would be a tooltip that shows up on hover that says something like "Hide videos" and "Show videos"
To be able to focus on the video / screen of the current presenter. Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Marco Ambrosini <marcoambrosini@pm.me>
Moved LocalMediaControls to the Grid view to make sure it's always visible even when the grid is collapsed. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Moved LocalMediaControls to the CallView to make sure they are available in any mode, including the sidebar one. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Add 100% height only when in grid view. Added LocalMediaControls to LocalVideo for when in grid view, properly centered. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
In order to keep the collapse logic and styles in a single location, the one on one LocalVideo was removed and now the Grid view's stripe is reused with a transparent background. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Make sure the top component fills the full height while running the animation, to avoid showing some black background there. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
When the stripe (internally a grid) is collapsed, it should not attempt to rebuild itself. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
it's not videos if you only see avatars there, so not sure about the text. |
341a206
to
b047b63
Compare
Since this pull request when the call view is shown in the sidebar the media controls are a bit off from the video (I have tested with nextcloud/server@fd178b9^ and also rebasing #4291 and using it against nextcloud/server@766590d204^, so it should not be a problem of an outdated style from server): Is that intended, or known? |
I didn't observe this before. Can you make a ticket and provide steps to reproduce and maybe also window size ? The reason is that now the controls are not part of the video box any more, they are outside. But how did you manage to have the video box smaller than usual ? |
We really need to implement tests for the call view. There are so many scenarios that I's becoming impossible to test all of them whenever someone changes something there |
I've raised #4440 for adding automated tests for the frontend |
@ma12-co while we might be able to test the code and logic, we can't test layout and styling stuff, so if a background color looks off or a container is not stretched correctly, we'd still need some manual testing to find that out. However we wouldn't need to retest all the logic. |
To be able to focus on the video / screen of the current presenter.
Fixes #4245
Todos