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

Commit e759a85

Browse files
Wrap status message (#7325)
* Wrap status message Signed-off-by: Šimon Brandner <[email protected]> * Give status a max-height Signed-off-by: Šimon Brandner <[email protected]>
1 parent 13028d3 commit e759a85

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

res/css/views/right_panel/_UserInfo.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,19 @@ limitations under the License.
204204
}
205205

206206
.mx_UserInfo_statusMessage {
207+
$statusLineHeight: 16px;
208+
$statusNumberOfLines: 3;
209+
207210
font-size: $font-11px;
211+
line-height: $statusLineHeight;
208212
opacity: 0.5;
209213
overflow: hidden;
210-
white-space: nowrap;
211-
text-overflow: clip;
214+
word-break: break-word;
215+
text-overflow: ellipsis;
216+
display: -webkit-box;
217+
max-height: calc($statusLineHeight * $statusNumberOfLines);
218+
-webkit-line-clamp: $statusNumberOfLines;
219+
-webkit-box-orient: vertical;
212220
}
213221

214222
.mx_AutoHideScrollbar {

0 commit comments

Comments
 (0)