Skip to content

Commit ca92b4c

Browse files
authored
Merge pull request #4342 from DSpace/backport-4341-to-dspace-7_x
[Port dspace-7_x] Use ellipsis for truncatable parts
2 parents a0ebf4a + 46b58c3 commit ca92b4c

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

src/styles/_truncatable-part.component.scss

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,11 @@
44
height: $lines * $height;
55
}
66
.content {
7-
max-height: $lines * $height;
8-
position: relative;
7+
text-overflow: ellipsis;
8+
display: -webkit-box;
9+
-webkit-line-clamp: $lines;
10+
-webkit-box-orient: vertical;
911
overflow: hidden;
10-
line-height: $line-height;
11-
overflow-wrap: break-word;
12-
&:after {
13-
content: "";
14-
position: absolute;
15-
padding-right: 15px;
16-
top: ($lines - 1) * $height;
17-
right: 0;
18-
width: 30%;
19-
min-width: 75px;
20-
max-width: 150px;
21-
height: $height;
22-
background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba($bg, 1) 70%);
23-
pointer-events: none;
24-
}
2512
}
2613

2714
}

0 commit comments

Comments
 (0)