Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Better my videos responsive

Chocobozzz287f9adbc92f
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.scss b/client/src/app/+my-library/my-videos/my-videos.component.scss
index c60eddc2c5..ea9eff46a6 100644
--- a/client/src/app/+my-library/my-videos/my-videos.component.scss
+++ b/client/src/app/+my-library/my-videos/my-videos.component.scss
@@ -52,10 +52,6 @@ td {
}
}
-p-table {
- max-height: calc(100vh - #{pvar(--header-height)} - 300px);
-}
-
@media screen and (min-width: $small-view) {
.video-cell-name {
width: 300px;
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.ts b/client/src/app/+my-library/my-videos/my-videos.component.ts
index 73e28830c3..9a15424a6f 100644
--- a/client/src/app/+my-library/my-videos/my-videos.component.ts
+++ b/client/src/app/+my-library/my-videos/my-videos.component.ts
@@ -106,6 +106,7 @@ export class MyVideosComponent extends RestTable<Video> implements OnInit, OnDes
totalRecords = 0
sort: SortMeta = { field: 'publishedAt', order: -1 }
+ rowsPerPage = 5
pagination: RestPagination = { count: this.rowsPerPage, start: 0 }
videosContainedInPlaylists: VideosExistInPlaylists = {}
diff --git a/client/src/app/core/rest/rest-table.ts b/client/src/app/core/rest/rest-table.ts
index 2a7e41eca4..0c1ee40e66 100644
--- a/client/src/app/core/rest/rest-table.ts
+++ b/client/src/app/core/rest/rest-table.ts
@@ -13,8 +13,8 @@ export abstract class RestTable<T = unknown> {
abstract sort: SortMeta
abstract pagination: RestPagination
- rowsPerPageOptions = [ 10, 20, 50, 100 ]
- rowsPerPage = this.rowsPerPageOptions[0]
+ rowsPerPageOptions = [ 5, 10, 20, 50, 100 ]
+ rowsPerPage = 10
expandedRows = {}
selectedRows: T[] = []
diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scss
index 12f7d474d0..07c5139798 100644
--- a/client/src/sass/primeng-custom.scss
+++ b/client/src/sass/primeng-custom.scss
@@ -1242,6 +1242,9 @@ p-chips {
// ---------------------------------------------------------------------------
.new-p-table {
+ margin-bottom: 0.5rem;
+ display: block;
+
.column-toggle {
.tertiary-button:not(.active) {
color: pvar(--fg-300) !important;