mirror of
https://github.com/bitwarden/browser
synced 2025-01-20 00:12:09 +01:00
lock animation only on non-safari
This commit is contained in:
parent
147ffe894f
commit
3bce3ede25
@ -6,6 +6,7 @@ import {
|
|||||||
transition,
|
transition,
|
||||||
trigger,
|
trigger,
|
||||||
} from '@angular/animations';
|
} from '@angular/animations';
|
||||||
|
import { BrowserApi } from 'src/browser/browserApi';
|
||||||
|
|
||||||
const queryShown = query(':enter, :leave', [
|
const queryShown = query(':enter, :leave', [
|
||||||
style({ position: 'fixed', width: '100%', height: '100%' }),
|
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('folders => edit-folder, folders => add-folder', inSlideUp),
|
||||||
transition('edit-folder => folders, add-folder => folders', outSlideDown),
|
transition('edit-folder => folders, add-folder => folders', outSlideDown),
|
||||||
|
|
||||||
transition('tabs => lock', inSlideDown),
|
|
||||||
|
|
||||||
transition('tabs => sync', inSlideLeft),
|
transition('tabs => sync', inSlideLeft),
|
||||||
transition('sync => tabs', outSlideRight),
|
transition('sync => tabs', outSlideRight),
|
||||||
|
|
||||||
@ -178,3 +177,7 @@ export const routerTransition = trigger('routerTransition', [
|
|||||||
transition('tabs => premium', inSlideLeft),
|
transition('tabs => premium', inSlideLeft),
|
||||||
transition('premium => tabs', outSlideRight),
|
transition('premium => tabs', outSlideRight),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
if (!BrowserApi.isSafariApi) {
|
||||||
|
routerTransition.definitions.push(transition('tabs => lock', inSlideDown));
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user