From 064b2549679d54b211649e9c23d1664167d25059 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 20 Aug 2023 11:12:15 +0200 Subject: [PATCH] Replacing icons with https://ionic.io/ionicons in search #587 --- src/frontend/app/app.module.ts | 18 +++++++++++---- .../query-entry.search.gallery.component.html | 11 ++++++--- .../search-field-base.gallery.component.css | 7 ++++++ .../search-field-base.gallery.component.html | 23 ++++++++++--------- .../search-field.gallery.component.html | 2 +- .../search/search.gallery.component.html | 11 +++++---- src/frontend/styles.css | 1 + 7 files changed, 49 insertions(+), 24 deletions(-) diff --git a/src/frontend/app/app.module.ts b/src/frontend/app/app.module.ts index 38e8333a..e87c5a71 100644 --- a/src/frontend/app/app.module.ts +++ b/src/frontend/app/app.module.ts @@ -110,26 +110,34 @@ import {MarkerFactory} from './ui/gallery/map/MarkerFactory'; import {IconComponent} from './icon.component'; import {NgIconsModule} from '@ng-icons/core'; import { + ionAddOutline, ionAlbumsOutline, ionArrowDownOutline, ionArrowUpOutline, - ionCalendarOutline, ionChevronForwardOutline, + ionCalendarOutline, + ionChevronDownOutline, + ionChevronForwardOutline, ionCloudDownloadOutline, ionCopyOutline, + ionDocumentOutline, + ionFolderOutline, ionFunnelOutline, ionGitBranchOutline, ionHammerOutline, + ionImageOutline, ionImagesOutline, ionLinkOutline, + ionLocationOutline, ionLogOutOutline, ionMenuOutline, ionPeopleOutline, - ionPersonOutline, + ionPersonOutline, ionPricetagOutline, ionSaveOutline, ionSearchOutline, ionSettingsOutline, ionShareSocialOutline, ionShuffleOutline, ionStarOutline, + ionTextOutline, ionTrashOutline, } from '@ng-icons/ionicons'; import {SortingMethodIconComponent} from './ui/sorting-method-icon/sorting-method-icon.component'; @@ -182,8 +190,10 @@ Marker.prototype.options.icon = MarkerFactory.defIcon; ionMenuOutline, ionShareSocialOutline, ionImagesOutline, ionLinkOutline, ionSearchOutline, ionHammerOutline, ionCopyOutline, ionAlbumsOutline, ionSettingsOutline, ionLogOutOutline, - ionChevronForwardOutline, - ionTrashOutline, + ionChevronForwardOutline, ionChevronDownOutline, + ionTrashOutline,ionSaveOutline,ionAddOutline, + ionTextOutline, ionFolderOutline, ionDocumentOutline, ionImageOutline, + ionPricetagOutline, ionLocationOutline }), ClipboardModule, TooltipModule.forRoot(), diff --git a/src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html b/src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html index a7b02a67..2feec3a2 100644 --- a/src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html +++ b/src/frontend/app/ui/gallery/search/query-enrty/query-entry.search.gallery.component.html @@ -36,7 +36,7 @@
@@ -293,7 +298,7 @@
diff --git a/src/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.css b/src/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.css index 304ea3fc..ca278b44 100644 --- a/src/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.css +++ b/src/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.css @@ -48,6 +48,10 @@ display: block; } +.autocomplete-item span { + margin-left: -10px; +} + .autocomplete-item-selected { background-color: var(--bs-primary); color: #FFF; @@ -70,3 +74,6 @@ margin-left: 0 !important; } +ng-icon.insert-button ::ng-deep svg { + vertical-align: top; +} diff --git a/src/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.html b/src/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.html index 213adbd7..d3a88508 100644 --- a/src/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.html +++ b/src/frontend/app/ui/gallery/search/search-field-base/search-field-base.gallery.component.html @@ -34,19 +34,20 @@ *ngFor="let item of autoCompleteRenders; let i = index">
- - - - - - - + + + + + + + {{item.preText}}{{item.highLightText}}{{item.postText}} - - +
diff --git a/src/frontend/app/ui/gallery/search/search-field/search-field.gallery.component.html b/src/frontend/app/ui/gallery/search/search-field/search-field.gallery.component.html index e65ca377..fb4e09f2 100644 --- a/src/frontend/app/ui/gallery/search/search-field/search-field.gallery.component.html +++ b/src/frontend/app/ui/gallery/search/search-field/search-field.gallery.component.html @@ -10,7 +10,7 @@ diff --git a/src/frontend/app/ui/gallery/search/search.gallery.component.html b/src/frontend/app/ui/gallery/search/search.gallery.component.html index d2406fae..74809861 100644 --- a/src/frontend/app/ui/gallery/search/search.gallery.component.html +++ b/src/frontend/app/ui/gallery/search/search.gallery.component.html @@ -11,10 +11,11 @@ @@ -46,13 +47,13 @@ class="btn btn-secondary me-2" type="button" [disabled]="rawSearchText == ''" (click)="openSaveSearchModal(saveSearchModal)"> - + Save @@ -93,7 +94,7 @@ diff --git a/src/frontend/styles.css b/src/frontend/styles.css index 3b5c408d..bee4373c 100644 --- a/src/frontend/styles.css +++ b/src/frontend/styles.css @@ -51,6 +51,7 @@ This is mostly btn-light } ng-icon { + vertical-align: text-top; font-size: 1.15em }