-
Notifications
You must be signed in to change notification settings - Fork 105
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
New one-on-one layout #2417
New one-on-one layout #2417
Conversation
46935bd
to
54198d6
Compare
TODO: If you switch to spotlight while connecting, the app crashes |
54198d6
to
17d0cdd
Compare
ae4fe68
to
aa389d0
Compare
aa389d0
to
7ec04fe
Compare
Because we were hiding even the local participant during initial connection, there would be no participants, and therefore nothing to put in the spotlight. The designs don't really tell us what the connecting state should look like, so I've taken the liberty of restoring it to its former glory of showing the local participant immediately.
7ec04fe
to
a16f235
Compare
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.
This looks good.
I might have missed it but as far as i can tell this does never render tiles in portrait mode.
I think in 1:1 that is the one situation where this is totally doable.
I think right now it behaves the other way around which is already great (landscape will be rendered as landscape on a portrait screen).
But portrait media being rendered as portrait on a landscape screen would also be nice. (maybe with a little bit of a cutoff to not make it too small 9:16 becomeing 2:3 or similar)
> | ||
<Slot | ||
className={classNames(styles.slot, styles.local)} | ||
id={localTileModel.vm.id} | ||
model={localTileModel} | ||
onDrag={onDragLocalTile} | ||
data-block-alignment={pipAlignmentValue.block} | ||
data-inline-alignment={pipAlignmentValue.inline} | ||
/> | ||
</Slot> |
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.
Interesting. The slot for the local media feed is a child of the remote participant slot?
That makes actually.
So the local tile is always inside the parent/remote tile. Will this also hold true if we have a portrait remote media feed on a landscape screen. in that case i can imagine we would like the local tile to be outside the remote tile?
(currently we use the "show grey borders" (fit to frame) approach but in theory it would be nice to have the tile be the correct aspect ratio already)
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.
Yeah, making it be a child was the easiest way to get the right positioning. As I've commented below I don't know how to account for landscape media, currently (but neither does the old one-on-one layout).
Based on #2416
Closes #1244