fixed maximum height in image display
This commit is contained in:
parent
b93315092b
commit
03870964f4
|
@ -16,9 +16,9 @@
|
|||
</button>
|
||||
|
||||
<div *ngFor="let att of attachments" class="media-viewer-canvas__attachement"
|
||||
[ngClass]="{ 'collapsed': currentIndex !== att.index }">
|
||||
<a href="{{att.url}}" target="_blank" title="open image">
|
||||
<img *ngIf="att.type === 'image'" src="{{att.url}}" class="media-viewer-canvas__image" />
|
||||
[class.collapsed]="currentIndex !== att.index">
|
||||
<a href="{{att.url}}" target="_blank" title="{{att.description}}">
|
||||
<img *ngIf="att.type === 'image'" src="{{att.url}}" class="media-viewer-canvas__image" [class.collapsed]="currentIndex !== att.index" />
|
||||
</a>
|
||||
|
||||
<video *ngIf="att.type === 'gifv'" class="media-viewer-canvas__image" role="application" loop autoplay>
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
max-width: 95%;
|
||||
}
|
||||
|
||||
max-height: calc(100% - 120px);
|
||||
max-height: 90vh;
|
||||
margin-top: 50vh;
|
||||
margin-left: 50vw;
|
||||
transform: translate(-50%, -50%);
|
||||
|
@ -104,4 +104,5 @@
|
|||
|
||||
.collapsed {
|
||||
height: 0;
|
||||
max-height: 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue