소스 검색

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

j8
Hristo Terezov 4 년 전
부모
커밋
e1fef8d848
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2
    1
      react/features/filmstrip/components/web/ThumbnailWrapper.js

+ 2
- 1
react/features/filmstrip/components/web/ThumbnailWrapper.js 파일 보기

@@ -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…
취소
저장