Skip to content

Commit

Permalink
Fix adding videos in playlist from discover page
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Jan 3, 2025
1 parent a8495f4 commit 560be1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<div
*ngIf="isUserLoggedIn() && displayOptions.playlist"
role="button" aria-label="Open video actions" i18n-aria-label
class="playlist-dropdown" ngbDropdown #playlistDropdown="ngbDropdown" autoClose="outside" [placement]="getPlaylistDropdownPlacement()"
class="playlist-dropdown" ngbDropdown #playlistDropdown="ngbDropdown" autoClose="outside"
container="body" [placement]="getPlaylistDropdownPlacement()"
>
<span class="anchor" ngbDropdownAnchor></span>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,10 @@ export class VideoActionsDropdownComponent implements OnChanges {

getPlaylistDropdownPlacement () {
if (this.screenService.isInSmallView()) {
return 'bottom-right'
return 'bottom-right auto'
}

return 'bottom-left bottom-right'
return 'bottom-left bottom-right auto'
}

private buildActions () {
Expand Down

0 comments on commit 560be1e

Please sign in to comment.