Fix banner/avatar edit buttons
This commit is contained in:
parent
77273a93f9
commit
efc013bead
|
@ -11,7 +11,7 @@
|
||||||
<div *ngIf="hasBanner()" ngbDropdown placement="right">
|
<div *ngIf="hasBanner()" ngbDropdown placement="right">
|
||||||
<button type="button" class="actor-img-edit-button button-file primary-button" ngbDropdownToggle>
|
<button type="button" class="actor-img-edit-button button-file primary-button" ngbDropdownToggle>
|
||||||
<my-global-icon iconName="edit"></my-global-icon>
|
<my-global-icon iconName="edit"></my-global-icon>
|
||||||
<label for="bannerMenu" i18n>Change your banner</label>
|
<span i18n>Change your banner</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div ngbDropdownMenu>
|
<div ngbDropdownMenu>
|
||||||
|
@ -30,6 +30,6 @@
|
||||||
|
|
||||||
<ng-template #uploadNewBanner>
|
<ng-template #uploadNewBanner>
|
||||||
<my-global-icon iconName="upload"></my-global-icon>
|
<my-global-icon iconName="upload"></my-global-icon>
|
||||||
<span for="bannerfile" i18n>Upload a new banner</span>
|
<label for="bannerfile" i18n>Upload a new banner</label>
|
||||||
<input #bannerfileInput type="file" name="bannerfile" id="bannerfile" [accept]="bannerExtensions" (change)="onBannerChange(bannerfileInput)"/>
|
<input #bannerfileInput type="file" name="bannerfile" id="bannerfile" [accept]="bannerExtensions" (change)="onBannerChange(bannerfileInput)"/>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
|
|
|
@ -8,17 +8,17 @@
|
||||||
|
|
||||||
.actor-img-edit-button {
|
.actor-img-edit-button {
|
||||||
width: 31px;
|
width: 31px;
|
||||||
|
cursor: pointer;
|
||||||
@include button-with-icon(19px, 0);
|
|
||||||
|
|
||||||
& {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
cursor: pointer;
|
align-items: center;
|
||||||
}
|
|
||||||
|
|
||||||
input {
|
@include button-with-icon(19px, 0);
|
||||||
width: 30px;
|
}
|
||||||
height: 30px;
|
|
||||||
}
|
label {
|
||||||
|
font-weight: normal;
|
||||||
|
font-size: inherit;
|
||||||
|
color: inherit;
|
||||||
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue