diff options
author | Chocobozzz <me@florianbigard.com> | 2023-02-15 11:58:51 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-02-15 12:05:45 +0100 |
commit | 72c98d189ef7b18264a7f715d7a58910eba29a1c (patch) | |
tree | 3ee773d2cc8b9d66c2c9f293c1d7c1b65e2f9226 | |
parent | 0e76f30abb22bea8ab123902d6b3bf168f9a65c2 (diff) | |
download | PeerTube-72c98d189ef7b18264a7f715d7a58910eba29a1c.tar.gz PeerTube-72c98d189ef7b18264a7f715d7a58910eba29a1c.tar.zst PeerTube-72c98d189ef7b18264a7f715d7a58910eba29a1c.zip |
Correctly fix table column widths
-rw-r--r-- | client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.ts | 2 | ||||
-rw-r--r-- | client/src/sass/primeng-custom.scss | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.ts b/client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.ts index 426f5d622..ee3a6c73e 100644 --- a/client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.ts +++ b/client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.ts | |||
@@ -68,7 +68,7 @@ export class RecommendedVideosComponent implements OnInit, OnChanges, OnDestroy | |||
68 | } | 68 | } |
69 | } | 69 | } |
70 | 70 | ||
71 | ngOnDestroy(): void { | 71 | ngOnDestroy () { |
72 | if (this.userSub) this.userSub.unsubscribe() | 72 | if (this.userSub) this.userSub.unsubscribe() |
73 | } | 73 | } |
74 | 74 | ||
diff --git a/client/src/sass/primeng-custom.scss b/client/src/sass/primeng-custom.scss index ee66a9db3..18a5bb1b6 100644 --- a/client/src/sass/primeng-custom.scss +++ b/client/src/sass/primeng-custom.scss | |||
@@ -294,7 +294,6 @@ body .p-datepicker .p-datepicker-header .p-datepicker-title select:focus { | |||
294 | body .p-datepicker table { | 294 | body .p-datepicker table { |
295 | font-size: 14px; | 295 | font-size: 14px; |
296 | margin: 0.857em 0 0 0; | 296 | margin: 0.857em 0 0 0; |
297 | table-layout: fixed; | ||
298 | } | 297 | } |
299 | body .p-datepicker table th { | 298 | body .p-datepicker table th { |
300 | padding: 0.5em; | 299 | padding: 0.5em; |
@@ -451,6 +450,10 @@ body p-autocomplete.ng-dirty.ng-invalid > .p-autocomplete > .p-inputtext { | |||
451 | // --------------------------------------------------------------------------- | 450 | // --------------------------------------------------------------------------- |
452 | 451 | ||
453 | p-table { | 452 | p-table { |
453 | table { | ||
454 | table-layout: fixed; | ||
455 | } | ||
456 | |||
454 | .p-datatable-header { | 457 | .p-datatable-header { |
455 | border: none !important; | 458 | border: none !important; |
456 | background-color: pvar(--mainBackgroundColor) !important; | 459 | background-color: pvar(--mainBackgroundColor) !important; |