Mobile search bar fixes (#1032)

* Mobile search bar fixes

# Fixed
- Fixed: Fixed an issue with longer usernames causing header to wrap to another line. (develop)
- Fixed: Fixed an issue where the close button for the search was not centered on mobile. Verified on iOS Safari and iOS Chrome. (develop)

* Adding artist to search, fixing cover artist in search
This commit is contained in:
Robbie Davis 2022-02-04 17:35:39 -05:00 committed by GitHub
parent e59e9f92cf
commit 5e535386d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 3 deletions

View file

@ -112,8 +112,11 @@ export class NavHeaderComponent implements OnInit, OnDestroy {
// TODO: Move this to utility service
this.clearSearch();
switch(role) {
case PersonRole.Writer:
this.goTo('writers', filter);
break;
case PersonRole.Artist:
this.goTo('artist', filter);
this.goTo('artists', filter);
break;
case PersonRole.Character:
this.goTo('character', filter);
@ -128,7 +131,7 @@ export class NavHeaderComponent implements OnInit, OnDestroy {
this.goTo('inker', filter);
break;
case PersonRole.CoverArtist:
this.goTo('coverArtist', filter);
this.goTo('coverArtists', filter);
break;
case PersonRole.Inker:
this.goTo('inker', filter);