1
0
Fork 0

Fix upload banner icon margin

This commit is contained in:
Chocobozzz 2022-06-10 09:44:20 +02:00
parent 55269c0460
commit 9a872b03dd
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 12 additions and 6 deletions

View File

@ -5,9 +5,7 @@
</div>
<div *ngIf="!hasBanner()" class="actor-img-edit-button" [ngbTooltip]="bannerFormat" placement="right" container="body">
<my-global-icon iconName="upload"></my-global-icon>
<label for="bannerfile" i18n>Upload a new banner</label>
<input #bannerfileInput type="file" name="bannerfile" id="bannerfile" [accept]="bannerExtensions" (change)="onBannerChange(bannerfileInput)"/>
<ng-container *ngTemplateOutlet="uploadNewBanner"></ng-container>
</div>
<div
@ -22,9 +20,7 @@
<ng-template #bannerEditContent>
<div class="dropdown-item c-hand" [ngbTooltip]="bannerFormat" placement="right" container="body">
<my-global-icon iconName="upload"></my-global-icon>
<span for="bannerfile" i18n>Upload a new banner</span>
<input #bannerfileInput type="file" name="bannerfile" id="bannerfile" [accept]="bannerExtensions" (change)="onBannerChange(bannerfileInput)"/>
<ng-container *ngTemplateOutlet="uploadNewBanner"></ng-container>
</div>
<div class="dropdown-item c-hand" (click)="deleteBanner()" (key.enter)="deleteBanner()">
@ -32,3 +28,9 @@
<span i18n>Remove banner</span>
</div>
</ng-template>
<ng-template #uploadNewBanner>
<my-global-icon iconName="upload"></my-global-icon>
<span for="bannerfile" i18n>Upload a new banner</span>
<input #bannerfileInput type="file" name="bannerfile" id="bannerfile" [accept]="bannerExtensions" (change)="onBannerChange(bannerfileInput)"/>
</ng-template>

View File

@ -25,3 +25,7 @@
margin-bottom: 0;
}
}
my-global-icon {
margin: 0 5px;
}