From db714ab48a6444785f4b63706d56c50d38dac5ac Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Jun 2019 17:33:29 +0200 Subject: [PATCH] Fix notification overflow --- .../src/app/shared/users/user-notifications.component.scss | 1 + server/tests/api/check-params/config.ts | 3 ++- server/tests/api/server/config.ts | 5 ++++- shared/extra-utils/server/config.ts | 3 ++- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/client/src/app/shared/users/user-notifications.component.scss b/client/src/app/shared/users/user-notifications.component.scss index 88f38d9cf..0c6c70d98 100644 --- a/client/src/app/shared/users/user-notifications.component.scss +++ b/client/src/app/shared/users/user-notifications.component.scss @@ -14,6 +14,7 @@ font-size: inherit; padding: 15px 5px 15px 10px; border-bottom: 1px solid $separator-border-color; + word-break: break-word; &.unread { background-color: rgba(0, 0, 0, 0.05); diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index 8155e11ab..a0d9392dc 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts @@ -66,7 +66,8 @@ describe('Test config API validators', function () { '360p': true, '480p': true, '720p': false, - '1080p': false + '1080p': false, + '2160p': false }, hls: { enabled: false diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index 8ea21158a..c39516dee 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts @@ -59,6 +59,7 @@ function checkInitialConfig (server: ServerInfo, data: CustomConfig) { expect(data.transcoding.resolutions['480p']).to.be.true expect(data.transcoding.resolutions['720p']).to.be.true expect(data.transcoding.resolutions['1080p']).to.be.true + expect(data.transcoding.resolutions['2160p']).to.be.true expect(data.transcoding.hls.enabled).to.be.true expect(data.import.videos.http.enabled).to.be.true @@ -109,6 +110,7 @@ function checkUpdatedConfig (data: CustomConfig) { expect(data.transcoding.resolutions['480p']).to.be.true expect(data.transcoding.resolutions['720p']).to.be.false expect(data.transcoding.resolutions['1080p']).to.be.false + expect(data.transcoding.resolutions['2160p']).to.be.false expect(data.transcoding.hls.enabled).to.be.false expect(data.import.videos.http.enabled).to.be.false @@ -227,7 +229,8 @@ describe('Test config', function () { '360p': true, '480p': true, '720p': false, - '1080p': false + '1080p': false, + '2160p': false }, hls: { enabled: false diff --git a/shared/extra-utils/server/config.ts b/shared/extra-utils/server/config.ts index a5f5989e0..2b7965bc2 100644 --- a/shared/extra-utils/server/config.ts +++ b/shared/extra-utils/server/config.ts @@ -98,7 +98,8 @@ function updateCustomSubConfig (url: string, token: string, newConfig: any) { '360p': true, '480p': true, '720p': false, - '1080p': false + '1080p': false, + '2160p': false }, hls: { enabled: false