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

Commit

Permalink
Give status a max-height
Browse files Browse the repository at this point in the history
Signed-off-by: Šimon Brandner <[email protected]>
  • Loading branch information
SimonBrandner committed Dec 10, 2021
1 parent a8dc0e6 commit c6bb1d7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion res/css/views/right_panel/_UserInfo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,19 @@ limitations under the License.
}

.mx_UserInfo_statusMessage {
$statusLineHeight: 16px;
$statusNumberOfLines: 3;

font-size: $font-11px;
line-height: $statusLineHeight;
opacity: 0.5;
overflow: hidden;
text-overflow: clip;
word-break: break-word;
text-overflow: ellipsis;
display: -webkit-box;
max-height: calc($statusLineHeight * $statusNumberOfLines);
-webkit-line-clamp: $statusNumberOfLines;
-webkit-box-orient: vertical;
}

.mx_AutoHideScrollbar {
Expand Down

0 comments on commit c6bb1d7

Please sign in to comment.