Merge pull request #4135 from matrix-org/t3chguy/userinfo_limit

Limit UserInfo Displayname to 3 lines to get rid of scrollbars
This commit is contained in:
Michael Telatynski 2020-02-26 15:45:36 +00:00 committed by GitHub
commit 70a2f224f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,12 +137,19 @@ limitations under the License.
font-size: 18px;
line-height: 25px;
flex: 1;
overflow-x: auto;
max-height: 50px;
display: flex;
justify-content: center;
align-items: center;
// limit to 2 lines, show an ellipsis if it overflows
// this looks webkit specific but is supported by Firefox 68+
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
word-break: break-all;
text-overflow: ellipsis;
.mx_E2EIcon {
margin: 5px;
}