mirror of https://github.com/Chocobozzz/PeerTube
Fix user dropdown overflow
parent
72efdda586
commit
5ff523664f
|
@ -27,7 +27,7 @@
|
|||
<th style="width: 100px;" i18n pSortableColumn="state">State <p-sortIcon field="state"></p-sortIcon></th>
|
||||
<th style="width: 150px;" i18n pSortableColumn="createdAt">Created <p-sortIcon field="createdAt"></p-sortIcon></th>
|
||||
<th style="width: 160px;" i18n pSortableColumn="redundancyAllowed">Redundancy allowed <p-sortIcon field="redundancyAllowed"></p-sortIcon></th>
|
||||
<th style="width: 100px;"></th>
|
||||
<th style="width: 150px;"></th>
|
||||
</tr>
|
||||
</ng-template>
|
||||
|
||||
|
|
|
@ -106,7 +106,10 @@
|
|||
<td [title]="user.createdAt">{{ user.createdAt | date: 'short' }}</td>
|
||||
|
||||
<td class="action-cell">
|
||||
<my-user-moderation-dropdown *ngIf="!isInSelectionMode()" [user]="user" (userChanged)="onUserChanged()" (userDeleted)="onUserChanged()">
|
||||
<my-user-moderation-dropdown
|
||||
*ngIf="!isInSelectionMode()"
|
||||
[user]="user" container="body" (userChanged)="onUserChanged()" (userDeleted)="onUserChanged()"
|
||||
>
|
||||
</my-user-moderation-dropdown>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -4,5 +4,6 @@
|
|||
<my-action-dropdown
|
||||
[actions]="userActions" [entry]="{ user: user, account: account }"
|
||||
[buttonSize]="buttonSize" [placement]="placement" [label]="label"
|
||||
[container]="container"
|
||||
></my-action-dropdown>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
|
|
|
@ -22,6 +22,7 @@ export class UserModerationDropdownComponent implements OnInit, OnChanges {
|
|||
@Input() buttonSize: 'normal' | 'small' = 'normal'
|
||||
@Input() placement = 'left-top left-bottom auto'
|
||||
@Input() label: string
|
||||
@Input() container: 'body' | undefined = undefined
|
||||
|
||||
@Output() userChanged = new EventEmitter()
|
||||
@Output() userDeleted = new EventEmitter()
|
||||
|
|
Loading…
Reference in New Issue