Use -webkit-line-clamp for the room header topic overflow (#8367)
This commit is contained in:
parent
70cdd57a5c
commit
2fcf787578
1 changed files with 11 additions and 4 deletions
|
@ -141,17 +141,24 @@ limitations under the License.
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_RoomHeader_topic {
|
.mx_RoomHeader_topic {
|
||||||
|
$lineHeight: $font-16px;
|
||||||
|
$lines: 2;
|
||||||
|
|
||||||
flex: 1;
|
flex: 1;
|
||||||
color: $roomtopic-color;
|
color: $roomtopic-color;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
font-size: $font-13px;
|
font-size: $font-13px;
|
||||||
|
line-height: $lineHeight;
|
||||||
|
max-height: calc($lineHeight * $lines);
|
||||||
|
border-bottom: 1px solid transparent;
|
||||||
|
|
||||||
// to align baseline of topic with room name
|
// to align baseline of topic with room name
|
||||||
margin: 4px 7px 0;
|
margin: 4px 7px 0;
|
||||||
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
-webkit-line-clamp: $lines; // See: https://drafts.csswg.org/css-overflow-3/#webkit-line-clamp
|
||||||
border-bottom: 1px solid transparent;
|
-webkit-box-orient: vertical;
|
||||||
line-height: 1.2em;
|
display: -webkit-box;
|
||||||
max-height: 2.4em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_RoomHeader_avatar {
|
.mx_RoomHeader_avatar {
|
||||||
|
|
Loading…
Reference in a new issue