Kaynağa Gözat

fix(tile-view): when iAmRecorder=true.

j8
Hristo Terezov 4 yıl önce
ebeveyn
işleme
e1fef8d848

+ 2
- 1
react/features/filmstrip/components/web/ThumbnailWrapper.js Dosyayı Görüntüle

@@ -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);

Loading…
İptal
Kaydet