diff --git a/client/src/app/+home/home.component.scss b/client/src/app/+home/home.component.scss index 67f73d70e..40083bed3 100644 --- a/client/src/app/+home/home.component.scss +++ b/client/src/app/+home/home.component.scss @@ -1,10 +1,2 @@ @use '_variables' as *; @use '_mixins' as *; - -.margin-content { - padding-top: 2rem; - - ::ng-deep .revert-home-padding-top { - margin-top: -2rem; - } -} 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 cbbc3a173..ae05f8f5e 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 @@ -1,17 +1,16 @@ import { ComponentRef, Injectable } from '@angular/core' import { MarkdownService } from '@app/core' -import { logger } from '@root-helpers/logger' import { ButtonMarkupData, ChannelMiniatureMarkupData, ContainerMarkupData, EmbedMarkupData, InstanceAvatarMarkupData, - InstanceBannerMarkupData, PlaylistMiniatureMarkupData, VideoMiniatureMarkupData, VideosListMarkupData } from '@peertube/peertube-models' +import { logger } from '@root-helpers/logger' import { DynamicElementService } from './dynamic-element.service' import { ButtonMarkupComponent, @@ -162,15 +161,8 @@ export class CustomMarkupService { } private instanceBannerBuilder (el: HTMLElement) { - const data = el.dataset as InstanceBannerMarkupData const { component, loadedPromise } = this.dynamicElementService.createElement(InstanceBannerMarkupComponent) - const model = { - revertHomePaddingTop: this.buildBoolean(data.revertHomePaddingTop) ?? true - } - - this.dynamicElementService.setModel(component, model) - return { component, loadedPromise } } diff --git a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/instance-banner-markup.component.html b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/instance-banner-markup.component.html index cf9a40123..0a9f28995 100644 --- a/client/src/app/shared/shared-custom-markup/peertube-custom-tags/instance-banner-markup.component.html +++ b/client/src/app/shared/shared-custom-markup/peertube-custom-tags/instance-banner-markup.component.html @@ -1,3 +1,3 @@ -