Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Add popover autoclose

Chocobozzz0bd84f8bdebe
diff --git a/client/src/app/shared/forms/peertube-checkbox.component.scss b/client/src/app/shared/forms/peertube-checkbox.component.scss
index cbc50dc963..ee133f1908 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 42a92d7f0f..5b3ddde1d5 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()"
></span>
diff --git a/client/src/app/shared/video/video-feed.component.html b/client/src/app/shared/video/video-feed.component.html
index 2e687a7b9e..16116ba88a 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 @@
<div class="video-feed">
<span
- *ngIf="syndicationItems.length !== 0" [ngbPopover]="feedsList" placement="bottom"
+ *ngIf="syndicationItems.length !== 0" [ngbPopover]="feedsList" [autoClose]="true" placement="bottom"
class="icon icon-syndication" role="button"
></span>