From 72c98d189ef7b18264a7f715d7a58910eba29a1c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 15 Feb 2023 11:58:51 +0100 Subject: Correctly fix table column widths --- .../shared/recommendations/recommended-videos.component.ts | 2 +- client/src/sass/primeng-custom.scss | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'client/src') 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 } } - ngOnDestroy(): void { + ngOnDestroy () { if (this.userSub) this.userSub.unsubscribe() } 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 { body .p-datepicker table { font-size: 14px; margin: 0.857em 0 0 0; - table-layout: fixed; } body .p-datepicker table th { padding: 0.5em; @@ -451,6 +450,10 @@ body p-autocomplete.ng-dirty.ng-invalid > .p-autocomplete > .p-inputtext { // --------------------------------------------------------------------------- p-table { + table { + table-layout: fixed; + } + .p-datatable-header { border: none !important; background-color: pvar(--mainBackgroundColor) !important; -- cgit v1.2.3