diff options
author | Chocobozzz <me@florianbigard.com> | 2022-06-10 10:20:55 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-06-10 10:20:55 +0200 |
commit | 0164fc112a98897849a8eda2f0b5d208e813e014 (patch) | |
tree | 743d84cf1e4d942972d1d6862da22857ae39a55a /client/src/app/shared/shared-main | |
parent | 4c8749cb9e1e4a8d61697434e372f342def7bc70 (diff) | |
parent | bffee1d538aa7b51b78d646a0d372b352c073cd8 (diff) | |
download | PeerTube-0164fc112a98897849a8eda2f0b5d208e813e014.tar.gz PeerTube-0164fc112a98897849a8eda2f0b5d208e813e014.tar.zst PeerTube-0164fc112a98897849a8eda2f0b5d208e813e014.zip |
Merge branch 'release/4.2.0' into develop
Diffstat (limited to 'client/src/app/shared/shared-main')
3 files changed, 8 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-main/buttons/button.component.html b/client/src/app/shared/shared-main/buttons/button.component.html index 11c8ffedd..d1a4215e6 100644 --- a/client/src/app/shared/shared-main/buttons/button.component.html +++ b/client/src/app/shared/shared-main/buttons/button.component.html | |||
@@ -1,6 +1,6 @@ | |||
1 | <span class="action-button" [ngClass]="getClasses()" [ngbTooltip]="title" tabindex="0"> | 1 | <span class="action-button" [ngClass]="getClasses()" [ngbTooltip]="title" tabindex="0"> |
2 | <my-global-icon *ngIf="icon && !loading" [iconName]="icon"></my-global-icon> | ||
3 | <my-small-loader [loading]="loading"></my-small-loader> | 2 | <my-small-loader [loading]="loading"></my-small-loader> |
3 | <my-global-icon *ngIf="icon && !loading" [iconName]="icon"></my-global-icon> | ||
4 | 4 | ||
5 | <span *ngIf="label" class="button-label">{{ label }}</span> | 5 | <span *ngIf="label" class="button-label">{{ label }}</span> |
6 | 6 | ||
diff --git a/client/src/app/shared/shared-main/buttons/button.component.scss b/client/src/app/shared/shared-main/buttons/button.component.scss index c782ac3ef..c53b8f2e5 100644 --- a/client/src/app/shared/shared-main/buttons/button.component.scss +++ b/client/src/app/shared/shared-main/buttons/button.component.scss | |||
@@ -34,6 +34,12 @@ span[class$=-button] { | |||
34 | @include button-with-icon(21px); | 34 | @include button-with-icon(21px); |
35 | 35 | ||
36 | width: 100%; // useful for ellipsis, allow to define a max-width on host component | 36 | width: 100%; // useful for ellipsis, allow to define a max-width on host component |
37 | |||
38 | &.icon-only { | ||
39 | my-global-icon { | ||
40 | margin: 0; | ||
41 | } | ||
42 | } | ||
37 | } | 43 | } |
38 | 44 | ||
39 | .orange-button { | 45 | .orange-button { |
diff --git a/client/src/app/shared/shared-main/buttons/button.component.ts b/client/src/app/shared/shared-main/buttons/button.component.ts index b97012d9a..52936a4d4 100644 --- a/client/src/app/shared/shared-main/buttons/button.component.ts +++ b/client/src/app/shared/shared-main/buttons/button.component.ts | |||
@@ -20,6 +20,7 @@ export class ButtonComponent { | |||
20 | return { | 20 | return { |
21 | [this.className]: true, | 21 | [this.className]: true, |
22 | disabled: this.disabled, | 22 | disabled: this.disabled, |
23 | 'icon-only': !this.label, | ||
23 | 'responsive-label': this.responsiveLabel | 24 | 'responsive-label': this.responsiveLabel |
24 | } | 25 | } |
25 | } | 26 | } |