From f17f8ca17b17a2ccabe04ecdcc393e8f70b39c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Fri, 23 Jan 2026 15:49:59 +0700 Subject: [PATCH] Use feather icons in sidebar header --- app/components/icon.gjs | 6 +++++- app/components/places-sidebar.gjs | 5 +++-- app/styles/app.css | 26 ++++++++++++++++---------- 3 files changed, 24 insertions(+), 13 deletions(-) diff --git a/app/components/icon.gjs b/app/components/icon.gjs index b87559e..cf772dd 100644 --- a/app/components/icon.gjs +++ b/app/components/icon.gjs @@ -10,6 +10,8 @@ import navigation from 'feather-icons/dist/icons/navigation.svg?raw'; import phone from 'feather-icons/dist/icons/phone.svg?raw'; import user from 'feather-icons/dist/icons/user.svg?raw'; import settings from 'feather-icons/dist/icons/settings.svg?raw'; +import arrowLeft from 'feather-icons/dist/icons/arrow-left.svg?raw'; +import x from 'feather-icons/dist/icons/x.svg?raw'; const ICONS = { clock, @@ -20,7 +22,9 @@ const ICONS = { navigation, phone, user, - settings + settings, + 'arrow-left': arrowLeft, + x }; export default class IconComponent extends Component { diff --git a/app/components/places-sidebar.gjs b/app/components/places-sidebar.gjs index 029cdb0..f431928 100644 --- a/app/components/places-sidebar.gjs +++ b/app/components/places-sidebar.gjs @@ -5,6 +5,7 @@ import { on } from '@ember/modifier'; import { fn } from '@ember/helper'; import or from 'ember-truth-helpers/helpers/or'; import PlaceDetails from './place-details'; +import Icon from './icon'; export default class PlacesSidebar extends Component { @service storage; @@ -123,7 +124,7 @@ export default class PlacesSidebar extends Component { type="button" class="back-btn" {{on "click" this.clearSelection}} - >← + > {{else}}

Nearby Places

{{/if}} @@ -131,7 +132,7 @@ export default class PlacesSidebar extends Component { type="button" class="close-btn" {{on "click" @onClose}} - >× + >