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

Commit

Permalink
Wrap status message (#7325)
Browse files Browse the repository at this point in the history
* Wrap status message

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>

* Give status a max-height

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
  • Loading branch information
SimonBrandner committed Dec 28, 2021
1 parent 13028d3 commit e759a85
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions res/css/views/right_panel/_UserInfo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -204,11 +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;
white-space: nowrap;
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 e759a85

Please sign in to comment.