From: Rigel Kent Date: Thu, 9 Jan 2020 15:54:59 +0000 (+0100) Subject: Better placement for help tooltip X-Git-Tag: v2.1.0-rc.1~51 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fc2df421a99e87ad20ca1f758491b6af476efd56;p=oweals%2Fpeertube.git Better placement for help tooltip --- diff --git a/client/src/app/shared/forms/peertube-checkbox.component.ts b/client/src/app/shared/forms/peertube-checkbox.component.ts index 0303b7e2a..cb7ec8eda 100644 --- a/client/src/app/shared/forms/peertube-checkbox.component.ts +++ b/client/src/app/shared/forms/peertube-checkbox.component.ts @@ -19,7 +19,7 @@ export class PeertubeCheckboxComponent implements ControlValueAccessor, AfterCon @Input() inputName: string @Input() labelText: string @Input() labelInnerHTML: string - @Input() helpPlacement = 'top' + @Input() helpPlacement = 'top auto' @Input() disabled = false @ContentChildren(PeerTubeTemplateDirective) templates: QueryList> diff --git a/client/src/app/shared/misc/help.component.ts b/client/src/app/shared/misc/help.component.ts index 18ba8ad5e..e8c199e7d 100644 --- a/client/src/app/shared/misc/help.component.ts +++ b/client/src/app/shared/misc/help.component.ts @@ -11,7 +11,7 @@ import { PeerTubeTemplateDirective } from '@app/shared/angular/peertube-template export class HelpComponent implements OnInit, OnChanges, AfterContentInit { @Input() helpType: 'custom' | 'markdownText' | 'markdownEnhanced' = 'custom' - @Input() tooltipPlacement = 'right' + @Input() tooltipPlacement = 'right auto' @ContentChildren(PeerTubeTemplateDirective) templates: QueryList>