1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PM-18913] Remove unneeded margin from send search component (#13698)

* Remove unneeded margin

* Made send-search.component ts-strict compliant

---------

Co-authored-by: Daniel James Smith <djsmith85@users.noreply.github.com>
This commit is contained in:
Daniel James Smith
2025-03-05 16:04:46 +01:00
committed by GitHub
parent 021c23580a
commit f95ce4e442
2 changed files with 8 additions and 12 deletions

View File

@@ -1,9 +1,7 @@
<div class="tw-mb-2"> <bit-search
<bit-search
[placeholder]="'search' | i18n" [placeholder]="'search' | i18n"
[(ngModel)]="searchText" [(ngModel)]="searchText"
(ngModelChange)="onSearchTextChanged()" (ngModelChange)="onSearchTextChanged()"
appAutofocus appAutofocus
> >
</bit-search> </bit-search>
</div>

View File

@@ -1,5 +1,3 @@
// FIXME: Update this file to be type safe and remove this and next line
// @ts-strict-ignore
import { CommonModule } from "@angular/common"; import { CommonModule } from "@angular/common";
import { Component } from "@angular/core"; import { Component } from "@angular/core";
import { takeUntilDestroyed } from "@angular/core/rxjs-interop"; import { takeUntilDestroyed } from "@angular/core/rxjs-interop";
@@ -20,7 +18,7 @@ const SearchTextDebounceInterval = 200;
templateUrl: "send-search.component.html", templateUrl: "send-search.component.html",
}) })
export class SendSearchComponent { export class SendSearchComponent {
searchText: string; searchText: string = "";
private searchText$ = new Subject<string>(); private searchText$ = new Subject<string>();