Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@
<mat-icon svgIcon="search"></mat-icon>
</a>
</div>
<img class="structure-img" *ngIf = "!substance.$$source || substance.$$source !== 'staging'" appSubstanceImage size = "250" [entityId]="structure.id" [stereo]="showStereo" [version] ="substance.version">
<img class="structure-img" *ngIf = "substance.$$source && substance.$$source == 'staging'" appSubstanceImage size = "250" [entityId]="substance.uuid" [stereo]="showStereo">
<img class="structure-img" (click) = "openModal(structureTemplate)" *ngIf = "!substance.$$source || substance.$$source !== 'staging'" appSubstanceImage size = "250" [entityId]="structure.id" [stereo]="showStereo" [version] ="substance.version">
<img class="structure-img" (click) = "openModal(structureTemplate)" *ngIf = "substance.$$source && substance.$$source == 'staging'" appSubstanceImage size = "250" [entityId]="substance.uuid" [stereo]="showStereo">

<br/>
<button class ="mat-raised-button mat-primary" [disabled]="structure.definedStereo == 0" (click)="toggleStereo()">{{showStereo === false ? 'Show' : 'Hide'}} Stereo</button>
Expand Down Expand Up @@ -111,8 +111,8 @@ <h3>Systematic Names:</h3>

<ng-template #structureTemplate>
<div mat-dialog-content>
<img class="structure-img-big" *ngIf = "!substance.$$source || substance.$$source !== 'staging'" appSubstanceImage size = "250" [entityId]="structure.id" [stereo]="showStereo" [version] ="substance.version">
<img class="structure-img-big" *ngIf = "substance.$$source && substance.$$source == 'staging'" appSubstanceImage size = "250" [entityId]="substance.uuid" [stereo]="showStereo">
<img class="structure-img-big" *ngIf = "!substance.$$source || substance.$$source !== 'staging'" appSubstanceImage size = "650" [entityId]="structure.id" [stereo]="showStereo" [version] ="substance.version">
<img class="structure-img-big" *ngIf = "substance.$$source && substance.$$source == 'staging'" appSubstanceImage size = "650" [entityId]="substance.uuid" [stereo]="showStereo">

</div>
</ng-template>
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@

.structure-img-big {
width: 100%;
height: 500px !important;
height: 95% !important;
}


.structure-img:hover {
cursor: zoom-in !important;
}

.blue-font ::ng-deep sub {
margin-bottom: -10px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ export class StructureDetailsComponent extends SubstanceCardBase implements OnIn
openModal(templateRef) {

const dialogRef = this.dialog.open(templateRef, {
width: '650px',
width: '800px',
height: '97%',
panelClass: 'structure-image-panel',
});
this.overlayContainer.style.zIndex = '1002';
Expand Down