Skip to content

Commit

Permalink
fix(sidebar): subtitle text overflow (#3758)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonwoodland committed Jun 22, 2022
1 parent 855ad53 commit 32b848b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 7 additions & 0 deletions assets/styles/framework/typography.less
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,10 @@
white-space: nowrap;
display: block;
}

.multiline-ellipsis(@lines: 2) {
display: -webkit-box;
text-overflow: ellipsis;
-webkit-line-clamp: @lines;
-webkit-box-orient: vertical;
}
10 changes: 3 additions & 7 deletions components/views/user/User.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,13 @@
}

.subtitle {
height: 30px;
display: inline-block;
min-width: 0;
font-size: @micro-text-size;
line-height: 1.4;
text-overflow: ellipsis;
overflow: hidden;
height: @mini-text-size * 1.2 * 2;
line-height: 1.2;
font-size: @mini-text-size;
color: @text-muted;
font-family: @secondary-font;
pointer-events: none;
.multiline-ellipsis(2);
}

flex: 1;
Expand Down

0 comments on commit 32b848b

Please sign in to comment.