From fc2df421a99e87ad20ca1f758491b6af476efd56 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Thu, 9 Jan 2020 16:54:59 +0100 Subject: Better placement for help tooltip --- client/src/app/shared/forms/peertube-checkbox.component.ts | 2 +- client/src/app/shared/misc/help.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'client') 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> -- cgit v1.2.3