1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-07 09:31:31 +01:00

lock animation only on non-safari

This commit is contained in:
Kyle Spearrin 2019-08-21 09:26:27 -04:00
parent 147ffe894f
commit 3bce3ede25

View File

@ -6,6 +6,7 @@ import {
transition,
trigger,
} from '@angular/animations';
import { BrowserApi } from 'src/browser/browserApi';
const queryShown = query(':enter, :leave', [
style({ position: 'fixed', width: '100%', height: '100%' }),
@ -167,8 +168,6 @@ export const routerTransition = trigger('routerTransition', [
transition('folders => edit-folder, folders => add-folder', inSlideUp),
transition('edit-folder => folders, add-folder => folders', outSlideDown),
transition('tabs => lock', inSlideDown),
transition('tabs => sync', inSlideLeft),
transition('sync => tabs', outSlideRight),
@ -178,3 +177,7 @@ export const routerTransition = trigger('routerTransition', [
transition('tabs => premium', inSlideLeft),
transition('premium => tabs', outSlideRight),
]);
if (!BrowserApi.isSafariApi) {
routerTransition.definitions.push(transition('tabs => lock', inSlideDown));
}