diff --git a/frontend/app/gallery/cache.gallery.service.ts b/frontend/app/gallery/cache.gallery.service.ts index 75b28bb..a5ad661 100644 --- a/frontend/app/gallery/cache.gallery.service.ts +++ b/frontend/app/gallery/cache.gallery.service.ts @@ -1,5 +1,4 @@ import {Injectable} from '@angular/core'; -import {PhotoDTO} from '../../../common/entities/PhotoDTO'; import {DirectoryDTO} from '../../../common/entities/DirectoryDTO'; import {Utils} from '../../../common/Utils'; import {Config} from '../../../common/config/public/Config'; @@ -33,11 +32,11 @@ export class GalleryCacheService { } - public getAutoComplete(text: string): Array { + public getAutoComplete(text: string): AutoCompleteItem[] { const key = GalleryCacheService.AUTO_COMPLETE_PREFIX + text; const tmp = localStorage.getItem(key); if (tmp != null) { - const value: CacheItem> = JSON.parse(tmp); + const value: CacheItem = JSON.parse(tmp); if (value.timestamp < Date.now() - Config.Client.Search.autocompleteCacheTimeout) { localStorage.removeItem(key); return null; diff --git a/frontend/app/gallery/gallery.component.css b/frontend/app/gallery/gallery.component.css index 9998476..d7d16bb 100644 --- a/frontend/app/gallery/gallery.component.css +++ b/frontend/app/gallery/gallery.component.css @@ -54,7 +54,3 @@ app-gallery-directory { -webkit-transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); } } - -.search-type{ - margin-left: 5px; -} diff --git a/frontend/app/gallery/gallery.component.html b/frontend/app/gallery/gallery.component.html index 820fa7b..e90e8f4 100644 --- a/frontend/app/gallery/gallery.component.html +++ b/frontend/app/gallery/gallery.component.html @@ -40,25 +40,13 @@ - +
- + -