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

Commit

Permalink
Room header: do not collapse avatar or facepile (#11866)
Browse files Browse the repository at this point in the history
* Room header: do not collapse avatar or facepile

* comment
  • Loading branch information
Kerry authored Nov 14, 2023
1 parent a3f0633 commit 2a3fd93
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions res/css/structures/_RightPanel.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ limitations under the License.
box-sizing: border-box;
height: 100%;
contain: strict;
background-color: var(--cpd-color-bg-canvas-default);

.mx_RoomView_MessageList {
padding: 14px 18px; /* top and bottom is 4px smaller to balance with the padding set above */
Expand Down
11 changes: 11 additions & 0 deletions res/css/views/rooms/_RoomHeader.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,19 @@ limitations under the License.
cursor: pointer;
user-select: none;

/* RoomAvatar doesn't pass classes down to avatar
So set style here
using div because compound classes are not stable */
> div {
flex-shrink: 0;
}

&:hover {
color: $primary-content;
background: var(--cpd-color-bg-subtle-primary);
}
}

.mx_RoomHeader .mx_BaseAvatar {
flex-shrink: 0;
}

0 comments on commit 2a3fd93

Please sign in to comment.