* Add ellipsis on my-delete button of federation admin
* Add ellipsis on button label to define (max-)width on host component
Co-authored-by: Ms Kimsible <kimsible@users.noreply.github.com>
@include margin-right(10px);
}
}
+
+my-delete-button {
+ max-width: 130px;
+}
<ng-template pTemplate="body" let-follow>
<tr>
<td class="action-cell">
- <my-delete-button label="Unfollow" i18n-label (click)="removeFollowing(follow)"></my-delete-button>
+ <my-delete-button label (click)="removeFollowing(follow)"></my-delete-button>
</td>
<td>
<a [href]="follow.following.url" i18n-title title="Open instance in a new tab" target="_blank" rel="noopener noreferrer">
.follow-button {
@include create-button;
}
+
+my-delete-button {
+ max-width: 130px;
+}
:host {
outline: none;
+ display: inline-block;
}
my-small-loader ::ng-deep .root {
.action-button {
@include peertube-button-link;
@include button-with-icon(21px);
+
+ width: 100%; // useful for ellipsis, allow to define a max-width on host component
}
.orange-button {
@include grey-button;
}
+.button-label {
+ @include ellipsis;
+}
+
// In a table, try to minimize the space taken by this button
@media screen and (max-width: 1400px) {
:host-context(td) {