Custom markup container default to space between

pull/4360/head
Chocobozzz 2021-08-26 13:44:54 +02:00
parent 8e72210829
commit 0dce48c1e2
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 4 additions and 0 deletions

View File

@ -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)
}

View File

@ -53,4 +53,6 @@ export type ContainerMarkupData = {
title?: string
description?: string
layout?: 'row' | 'column'
justifyContent?: 'space-between' | 'normal' // default to 'space-between'
}