From 0bd84f8bdebeaba9623bce0e389e56bf0906a537 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 27 Aug 2018 11:52:14 +0200 Subject: [PATCH] Add popover autoclose --- .../src/app/shared/forms/peertube-checkbox.component.scss | 6 +++++- client/src/app/shared/misc/help.component.html | 1 + client/src/app/shared/video/video-feed.component.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/client/src/app/shared/forms/peertube-checkbox.component.scss b/client/src/app/shared/forms/peertube-checkbox.component.scss index cbc50dc96..ee133f190 100644 --- a/client/src/app/shared/forms/peertube-checkbox.component.scss +++ b/client/src/app/shared/forms/peertube-checkbox.component.scss @@ -3,7 +3,6 @@ .form-group { display: flex; - align-items: center; .form-group-checkbox { display: flex; @@ -20,4 +19,9 @@ margin-right: 10px; } } + + my-help { + position: relative; + top: -2px; + } } \ No newline at end of file diff --git a/client/src/app/shared/misc/help.component.html b/client/src/app/shared/misc/help.component.html index 42a92d7f0..5b3ddde1d 100644 --- a/client/src/app/shared/misc/help.component.html +++ b/client/src/app/shared/misc/help.component.html @@ -20,6 +20,7 @@ [attr.aria-pressed]="isPopoverOpened" [ngbPopover]="tooltipTemplate" [placement]="tooltipPlacement" + [autoClose]="true" (onHidden)="onPopoverHidden()" (onShown)="onPopoverShown()" > diff --git a/client/src/app/shared/video/video-feed.component.html b/client/src/app/shared/video/video-feed.component.html index 2e687a7b9..16116ba88 100644 --- a/client/src/app/shared/video/video-feed.component.html +++ b/client/src/app/shared/video/video-feed.component.html @@ -1,6 +1,6 @@
-- 2.25.1