aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/app/shared/shared-custom-markup/custom-markup.service.ts2
-rw-r--r--shared/models/custom-markup/custom-markup-data.model.ts2
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}