Fixes Popup Angular Animation Overlap
https://stackoverflow.com/questions/55122978/angular-7-animations-causes-z-index-overlapping-issue-on-webkit-browsers
This commit is contained in:
@@ -1,9 +1,5 @@
|
|||||||
<ng-container class="container" *ngIf="stacks && stacks.length > 0">
|
<ngx-glide #ngxGlide class="container stack-slider" *ngIf="stacks && stacks.length > 0">
|
||||||
<ngx-glide #ngxGlide>
|
<app-stack-card *ngFor="let stack of stacks" class="slider-card" [stack]="stack"
|
||||||
<ng-container *ngFor="let stack of stacks">
|
|
||||||
<app-stack-card class="slider-card" [stack]="stack"
|
|
||||||
[inFocus]="isInFocus(stack)">
|
[inFocus]="isInFocus(stack)">
|
||||||
</app-stack-card>
|
</app-stack-card>
|
||||||
</ng-container>
|
|
||||||
</ngx-glide>
|
</ngx-glide>
|
||||||
</ng-container>
|
|
||||||
|
|||||||
@@ -7,14 +7,9 @@
|
|||||||
|
|
||||||
.popup-background {
|
.popup-background {
|
||||||
background-color: rgba(0, 0, 0, 0.5);
|
background-color: rgba(0, 0, 0, 0.5);
|
||||||
justify-content: center;
|
position: absolute;
|
||||||
align-content: center;
|
width: 100%;
|
||||||
align-items: center;
|
height: 100%;
|
||||||
overflow-y: hidden;
|
|
||||||
position: fixed;
|
|
||||||
display: flex;
|
|
||||||
height: 100vh;
|
|
||||||
width: 100vw;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
@@ -25,10 +20,15 @@
|
|||||||
border: 1px solid #dddd;
|
border: 1px solid #dddd;
|
||||||
border-radius: 18px;
|
border-radius: 18px;
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
position: relative;
|
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
|
|
||||||
|
position: fixed;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
.popup-header {
|
.popup-header {
|
||||||
|
|||||||
@@ -27,12 +27,14 @@ import {
|
|||||||
'hide',
|
'hide',
|
||||||
style({
|
style({
|
||||||
opacity: '0',
|
opacity: '0',
|
||||||
|
zIndex: 2
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
state(
|
state(
|
||||||
'show',
|
'show',
|
||||||
style({
|
style({
|
||||||
opacity: '1',
|
opacity: '1',
|
||||||
|
zIndex: 2
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
transition(
|
transition(
|
||||||
|
|||||||
Reference in New Issue
Block a user