mirror of https://github.com/Chocobozzz/PeerTube
Fix button icon margin
parent
60ab5b99c7
commit
db129781ca
|
@ -1,6 +1,6 @@
|
||||||
<span class="action-button" [ngClass]="getClasses()" [ngbTooltip]="title" tabindex="0">
|
<span class="action-button" [ngClass]="getClasses()" [ngbTooltip]="title" tabindex="0">
|
||||||
<my-global-icon *ngIf="icon && !loading" [iconName]="icon"></my-global-icon>
|
|
||||||
<my-small-loader [loading]="loading"></my-small-loader>
|
<my-small-loader [loading]="loading"></my-small-loader>
|
||||||
|
<my-global-icon *ngIf="icon && !loading" [iconName]="icon"></my-global-icon>
|
||||||
|
|
||||||
<span *ngIf="label" class="button-label">{{ label }}</span>
|
<span *ngIf="label" class="button-label">{{ label }}</span>
|
||||||
|
|
||||||
|
|
|
@ -34,6 +34,12 @@ span[class$=-button] {
|
||||||
@include button-with-icon(21px);
|
@include button-with-icon(21px);
|
||||||
|
|
||||||
width: 100%; // useful for ellipsis, allow to define a max-width on host component
|
width: 100%; // useful for ellipsis, allow to define a max-width on host component
|
||||||
|
|
||||||
|
&.icon-only {
|
||||||
|
my-global-icon {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.orange-button {
|
.orange-button {
|
||||||
|
|
|
@ -20,6 +20,7 @@ export class ButtonComponent {
|
||||||
return {
|
return {
|
||||||
[this.className]: true,
|
[this.className]: true,
|
||||||
disabled: this.disabled,
|
disabled: this.disabled,
|
||||||
|
'icon-only': !this.label,
|
||||||
'responsive-label': this.responsiveLabel
|
'responsive-label': this.responsiveLabel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue