Skip to content

Commit

Permalink
fix(admin-ui): Fix display of asset detail focal point buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Dec 4, 2023
1 parent b5a265f commit 1b58aa7
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,42 +107,44 @@
</vdr-card>
</vdr-page-detail-sidebar>
<div class="carousel-container">
<button *ngIf="showSlideButtons" (click)="previousImage()" [class.disabled]="disablePreviousButton"><clr-icon shape="caret left" class="color-weight-800"></clr-icon
></button>
<div class="preview-image" #previewDiv [class.centered]="centered">
<div class="image-wrapper">
<vdr-focal-point-control
[width]="width"
[height]="height"
[fpx]="fpx"
[fpy]="fpy"
[editable]="settingFocalPoint"
(focalPointChange)="onFocalPointChange($event)"
>
<img
class="asset-image"
[src]="asset | assetPreview : size"
[ngClass]="size"
#imageElement
(load)="onImageLoad()"
/>
</vdr-focal-point-control>
<div class="focal-point-info" *ngIf="settingFocalPoint">
<button class="icon-button" (click)="setFocalPointCancel()">
<clr-icon shape="times"></clr-icon>
</button>
<button
class="btn btn-primary btn-sm"
(click)="setFocalPointEnd()"
[disabled]="!lastFocalPoint"
<button *ngIf="showSlideButtons" (click)="previousImage()" class="carousel-button" [class.disabled]="disablePreviousButton">
<clr-icon shape="caret left" class="color-weight-800"></clr-icon>
</button>
<div class="preview-image" #previewDiv [class.centered]="centered">
<div class="image-wrapper">
<vdr-focal-point-control
[width]="width"
[height]="height"
[fpx]="fpx"
[fpy]="fpy"
[editable]="settingFocalPoint"
(focalPointChange)="onFocalPointChange($event)"
>
<clr-icon shape="crosshairs"></clr-icon>
{{ 'asset.set-focal-point' | translate }}
</button>
<img
class="asset-image"
[src]="asset | assetPreview : size"
[ngClass]="size"
#imageElement
(load)="onImageLoad()"
/>
</vdr-focal-point-control>
<div class="focal-point-info" *ngIf="settingFocalPoint">
<button class="icon-button" (click)="setFocalPointCancel()">
<clr-icon shape="times"></clr-icon>
</button>
<button
class="btn btn-primary btn-sm"
(click)="setFocalPointEnd()"
[disabled]="!lastFocalPoint"
>
<clr-icon shape="crosshairs"></clr-icon>
{{ 'asset.set-focal-point' | translate }}
</button>
</div>
</div>
</div>
</div>
<button *ngIf="showSlideButtons" (click)="nextImage()" [class.disabled]="disableNextButton"><clr-icon shape="caret right" class="color-weight-800"></clr-icon
></button>
<button *ngIf="showSlideButtons" (click)="nextImage()" class="carousel-button" [class.disabled]="disableNextButton">
<clr-icon shape="caret right" class="color-weight-800"></clr-icon>
</button>
</div>
</vdr-page-detail-layout>
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
justify-content: space-between;
align-items: center;

button{
button.carousel-button {
cursor: pointer;
width: 30px;
height: 30px;
Expand Down

0 comments on commit 1b58aa7

Please sign in to comment.