Skip to content

Commit

Permalink
Fix menu buttons ellipsis
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Jan 14, 2025
1 parent 85969c5 commit e0960c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/app/menu/menu.component.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<ng-template #moreInfoButton>
<div class="more-info-btn-container">
<a
class="more-info-btn peertube-button-link peertube-button-icon mt-2 d-block" [ngClass]="{ 'icon-only': collapsed }"
class="more-info-btn peertube-button-link peertube-button-icon mt-2 d-block ellipsis" [ngClass]="{ 'icon-only': collapsed }"
routerLink="/about" i18n-title title="More info" routerLinkActive="active"
>
<my-global-icon iconName="help"></my-global-icon>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
@if (ptRouterLink || ptQueryParams) {
<a
class="action-button"
class="action-button ellipsis"
[ngClass]="classes" [ngbTooltip]="tooltip" [attr.title]="title"
[routerLink]="ptRouterLink" [queryParams]="ptQueryParams" [queryParamsHandling]="ptQueryParamsHandling" [routerLinkActive]="ptRouterLinkActive"
>
<ng-container *ngTemplateOutlet="content"></ng-container>
</a>
} @else if (href) {
<a
class="action-button"
class="action-button ellipsis"
[ngClass]="classes" [ngbTooltip]="tooltip" [attr.title]="title"
[href]="href" target="_blank"
>
<ng-container *ngTemplateOutlet="content"></ng-container>
</a>
} @else {
<button type="button" class="action-button" [ngClass]="classes" [disabled]="disabled" [ngbTooltip]="tooltip" [attr.title]="title">
<button type="button" class="action-button ellipsis" [ngClass]="classes" [disabled]="disabled" [ngbTooltip]="tooltip" [attr.title]="title">
<ng-container *ngTemplateOutlet="content"></ng-container>
</button>
}
Expand All @@ -24,7 +24,7 @@
<my-loader size="sm" [ngClass]="{ displayed: loading }" [loading]="loading"></my-loader>
<my-global-icon *ngIf="icon && !loading" [iconName]="icon"></my-global-icon>

<span class="button-label ellipsis" #labelContent (cdkObserveContent)="ngOnChanges()">
<span class="button-label" #labelContent (cdkObserveContent)="ngOnChanges()">
@if (label) {
{{ label }}
} @else {
Expand Down

0 comments on commit e0960c5

Please sign in to comment.