Skip to content

Commit

Permalink
fix(component): update small class video avatar styles (#1413)
Browse files Browse the repository at this point in the history
* refactor(desktop): update small class video avatar styles

* fix(web): update small class video avatar styles
  • Loading branch information
crimx committed Mar 7, 2022
1 parent b5fda9b commit a1f9ea8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
justify-content: center;
align-items: center;
background: #f3f6f9;

.video-avatar,
.video-avatar-absent {
width: 144px;
height: 108px;
}
}

.small-class-realtime-content {
Expand Down
2 changes: 2 additions & 0 deletions desktop/renderer-app/src/pages/SmallClassPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export const SmallClassPage = observer<SmallClassPageProps>(function SmallClassP
isAvatarUserCreator={true}
isCreator={true}
rtc={classRoomStore.rtc}
small={true}
updateDeviceState={classRoomStore.updateDeviceState}
userUUID={classRoomStore.userUUID}
/>
Expand Down Expand Up @@ -346,6 +347,7 @@ export const SmallClassPage = observer<SmallClassPageProps>(function SmallClassP
isAvatarUserCreator={false}
isCreator={classRoomStore.isCreator}
rtc={classRoomStore.rtc}
small={true}
updateDeviceState={classRoomStore.updateDeviceState}
userUUID={classRoomStore.userUUID}
/>
Expand Down
3 changes: 2 additions & 1 deletion web/flat-web/src/pages/SmallClassPage/SmallClassPage.less
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
align-items: center;
background: #f3f6f9;

.video-avatar {
.video-avatar,
.video-avatar-absent {
width: 144px;
height: 108px;
}
Expand Down
1 change: 1 addition & 0 deletions web/flat-web/src/pages/SmallClassPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ export const SmallClassPage = observer<SmallClassPageProps>(function SmallClassP
isAvatarUserCreator={false}
isCreator={classRoomStore.isCreator}
rtcRoom={classRoomStore.rtc}
small={true}
updateDeviceState={classRoomStore.updateDeviceState}
userUUID={classRoomStore.userUUID}
/>
Expand Down

0 comments on commit a1f9ea8

Please sign in to comment.