|
|
@@ -114,7 +114,8 @@ function _mapStateToProps(state, ownProps) {
|
|
114
|
114
|
|
|
115
|
115
|
if (rowIndex === rows - 1) { // center the last row
|
|
116
|
116
|
const { width: thumbnailWidth } = thumbnailSize;
|
|
117
|
|
- const partialLastRowParticipantsNumber = (remoteParticipantsLength + 1) % columns;
|
|
|
117
|
+ const { iAmRecorder } = state['features/base/config'];
|
|
|
118
|
+ const partialLastRowParticipantsNumber = (remoteParticipantsLength + (iAmRecorder ? 0 : 1)) % columns;
|
|
118
|
119
|
|
|
119
|
120
|
if (partialLastRowParticipantsNumber > 0) {
|
|
120
|
121
|
horizontalOffset = Math.floor((columns - partialLastRowParticipantsNumber) * (thumbnailWidth + 4) / 2);
|