Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Custom markup container default to space between

Chocobozzz0dce48c1e25a
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 63f2f76f56..ab640d3482 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 {
root.classList.add('peertube-container', layoutClass)
+ root.style.justifyContent = data.justifyContent || 'space-between'
+
if (data.width) {
root.setAttribute('width', data.width)
}
diff --git a/shared/models/custom-markup/custom-markup-data.model.ts b/shared/models/custom-markup/custom-markup-data.model.ts
index 667eaad9c0..3e396052a6 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 = {
title?: string
description?: string
layout?: 'row' | 'column'
+
+ justifyContent?: 'space-between' | 'normal' // default to 'space-between'
}