Skip to content

Commit

Permalink
feat: Improve Playlist description overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anshg1214 committed Jan 8, 2025
1 parent 300e17a commit 04c5eaf
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 13 deletions.
13 changes: 0 additions & 13 deletions frontend/css/listens-page.less
Original file line number Diff line number Diff line change
Expand Up @@ -505,19 +505,6 @@
}
}

.ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ellipsis-2-lines {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}

#spacer {
margin-top: 54px;
}
Expand Down
1 change: 1 addition & 0 deletions frontend/css/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
@import "donations.less";
@import "scroll-container.less";
@import "flairs.less";
@import "utilities.less";

@icon-font-path: "/static/fonts/";

Expand Down
20 changes: 20 additions & 0 deletions frontend/css/utilities.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ellipsis-2-lines {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}

.ellipsis-4-lines {
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
1 change: 1 addition & 0 deletions frontend/js/src/search/PlaylistSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export default function PlaylistSearch(props: PlayListSearchProps) {
</Link>
</td>
<td
className="ellipsis-4-lines"
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: playlist?.annotation || "",
Expand Down

0 comments on commit 04c5eaf

Please sign in to comment.