Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
More video rooms design updates (#8222)
Browse files Browse the repository at this point in the history
* Update video room icon

* Hide room header border in video rooms

* Fix inconsistent padding on AppTile frames
  • Loading branch information
robintown authored Apr 5, 2022
1 parent c0c447a commit 4f6b939
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 11 deletions.
20 changes: 13 additions & 7 deletions res/css/structures/_RoomView.scss
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,20 @@ hr.mx_RoomView_myReadMarker {
}

// Immersive widgets
.mx_RoomView_body > .mx_AppTile {
margin: $container-gap-width;
margin-right: calc($container-gap-width / 2);
width: auto;
height: 100%;
padding-top: 33px; // to match the right panel chat heading
.mx_RoomView_immersive {
.mx_RoomHeader_wrapper {
border: unset;
}

border-radius: 8px;
.mx_AppTile {
margin: $container-gap-width;
margin-right: calc($container-gap-width / 2);
width: auto;
height: 100%;
padding-top: 33px; // to match the right panel chat heading

border-radius: 8px;
}
}

.mx_RoomView_callStatusBar .mx_UploadBar_uploadProgressInner {
Expand Down
2 changes: 0 additions & 2 deletions res/css/views/rooms/_AppsDrawer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ $MinWidth: 240px;
width: 50%;
min-width: $MinWidth;
border: $container-border-width solid $widget-menu-bar-bg-color;
border-left-width: 5px;
border-right-width: 5px;
display: flex;
flex-direction: column;
box-sizing: border-box;
Expand Down
2 changes: 1 addition & 1 deletion res/css/views/rooms/_RoomList.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ limitations under the License.
mask-image: url('$(res)/img/element-icons/roomlist/hash-plus.svg');
}
.mx_RoomList_iconNewVideoRoom::before {
mask-image: url('$(res)/img/element-icons/call/video-call.svg');
mask-image: url('$(res)/img/element-icons/roomlist/hash-video.svg');
}
.mx_RoomList_iconAddExistingRoom::before {
mask-image: url('$(res)/img/element-icons/roomlist/hash.svg');
Expand Down
2 changes: 1 addition & 1 deletion res/css/views/rooms/_RoomListHeader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ limitations under the License.
mask-image: url('$(res)/img/element-icons/roomlist/hash-plus.svg');
}
.mx_RoomListHeader_iconNewVideoRoom::before {
mask-image: url('$(res)/img/element-icons/call/video-call.svg');
mask-image: url('$(res)/img/element-icons/roomlist/hash-video.svg');
}
.mx_RoomListHeader_iconExplore::before {
mask-image: url('$(res)/img/element-icons/roomlist/hash-search.svg');
Expand Down
5 changes: 5 additions & 0 deletions res/img/element-icons/roomlist/hash-video.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/structures/RoomView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2100,6 +2100,7 @@ export class RoomView extends React.Component<IRoomProps, IRoomState> {

const mainClasses = classNames("mx_RoomView", {
mx_RoomView_inCall: Boolean(activeCall),
mx_RoomView_immersive: this.state.mainSplitContentType === MainSplitContentType.Video,
});

const showChatEffects = SettingsStore.getValue('showChatEffects');
Expand Down

0 comments on commit 4f6b939

Please sign in to comment.