1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-22 07:50:04 +02:00

remove slideIn animation as it doesn't support the "show animations" setting (#11591)

This commit is contained in:
Nick Krantz 2024-10-21 13:05:15 -05:00 committed by GitHub
parent 4b9fbfc832
commit 116d2166c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 13 deletions

View File

@ -1,4 +1,4 @@
<popup-page @slideIn> <popup-page>
<popup-header <popup-header
slot="header" slot="header"
[backAction]="close" [backAction]="close"

View File

@ -1,4 +1,3 @@
import { animate, group, style, transition, trigger } from "@angular/animations";
import { DIALOG_DATA, DialogConfig, DialogRef } from "@angular/cdk/dialog"; import { DIALOG_DATA, DialogConfig, DialogRef } from "@angular/cdk/dialog";
import { Overlay } from "@angular/cdk/overlay"; import { Overlay } from "@angular/cdk/overlay";
import { CommonModule } from "@angular/common"; import { CommonModule } from "@angular/common";
@ -26,16 +25,6 @@ export enum GeneratorDialogAction {
Canceled = "canceled", Canceled = "canceled",
} }
const slideIn = trigger("slideIn", [
transition(":enter", [
style({ opacity: 0, transform: "translateY(100vh)" }),
group([
animate("0.15s linear", style({ opacity: 1 })),
animate("0.3s ease-out", style({ transform: "none" })),
]),
]),
]);
@Component({ @Component({
selector: "app-vault-generator-dialog", selector: "app-vault-generator-dialog",
templateUrl: "./vault-generator-dialog.component.html", templateUrl: "./vault-generator-dialog.component.html",
@ -48,7 +37,6 @@ const slideIn = trigger("slideIn", [
CipherFormGeneratorComponent, CipherFormGeneratorComponent,
ButtonModule, ButtonModule,
], ],
animations: [slideIn],
}) })
export class VaultGeneratorDialogComponent { export class VaultGeneratorDialogComponent {
protected title = this.i18nService.t(this.isPassword ? "passwordGenerator" : "usernameGenerator"); protected title = this.i18nService.t(this.isPassword ? "passwordGenerator" : "usernameGenerator");