feat(web): search albums (#7322)

* feat: search albums

* pr feedback

* fix: comparison

* pr feedback

* simplify

* chore: more compact album padding

---------

Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
martin
2024-02-22 15:04:43 +01:00
committed by GitHub
parent e3cccba78c
commit 75947ab6c2
6 changed files with 26 additions and 16 deletions

View File

@@ -5,7 +5,7 @@
import { searchPerson, type PersonResponseDto } from '@immich/sdk';
import { createEventDispatcher } from 'svelte';
import FaceThumbnail from './face-thumbnail.svelte';
import SearchBar from './search-bar.svelte';
import SearchBar from '../elements/search-bar.svelte';
export let screenHeight: number;
export let people: PersonResponseDto[];
@@ -55,7 +55,8 @@
<div class=" w-40 sm:w-48 md:w-96 h-14 mb-8">
<SearchBar
bind:name
{isSearchingPeople}
isSearching={isSearchingPeople}
placeholder="Search people"
on:reset={() => {
people = peopleCopy;
}}