diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-26 13:44:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-26 13:44:54 +0200 |
commit | 0dce48c1e25a4ac0d4b7a4cb53c9fa54c81fa766 (patch) | |
tree | 20930d56bdb65838c80d5aa57149be205e5e2560 | |
parent | 8e72210829368aeb831f13b66a31ffbe5bf35272 (diff) | |
download | PeerTube-0dce48c1e25a4ac0d4b7a4cb53c9fa54c81fa766.tar.gz PeerTube-0dce48c1e25a4ac0d4b7a4cb53c9fa54c81fa766.tar.zst PeerTube-0dce48c1e25a4ac0d4b7a4cb53c9fa54c81fa766.zip |
Custom markup container default to space between
-rw-r--r-- | client/src/app/shared/shared-custom-markup/custom-markup.service.ts | 2 | ||||
-rw-r--r-- | shared/models/custom-markup/custom-markup-data.model.ts | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/client/src/app/shared/shared-custom-markup/custom-markup.service.ts b/client/src/app/shared/shared-custom-markup/custom-markup.service.ts index 63f2f76f5..ab640d348 100644 --- a/client/src/app/shared/shared-custom-markup/custom-markup.service.ts +++ b/client/src/app/shared/shared-custom-markup/custom-markup.service.ts | |||
@@ -217,6 +217,8 @@ export class CustomMarkupService { | |||
217 | 217 | ||
218 | root.classList.add('peertube-container', layoutClass) | 218 | root.classList.add('peertube-container', layoutClass) |
219 | 219 | ||
220 | root.style.justifyContent = data.justifyContent || 'space-between' | ||
221 | |||
220 | if (data.width) { | 222 | if (data.width) { |
221 | root.setAttribute('width', data.width) | 223 | root.setAttribute('width', data.width) |
222 | } | 224 | } |
diff --git a/shared/models/custom-markup/custom-markup-data.model.ts b/shared/models/custom-markup/custom-markup-data.model.ts index 667eaad9c..3e396052a 100644 --- a/shared/models/custom-markup/custom-markup-data.model.ts +++ b/shared/models/custom-markup/custom-markup-data.model.ts | |||
@@ -53,4 +53,6 @@ export type ContainerMarkupData = { | |||
53 | title?: string | 53 | title?: string |
54 | description?: string | 54 | description?: string |
55 | layout?: 'row' | 'column' | 55 | layout?: 'row' | 'column' |
56 | |||
57 | justifyContent?: 'space-between' | 'normal' // default to 'space-between' | ||
56 | } | 58 | } |