From 43b96a3122851112b83264df626b79f3ad1ebedb Mon Sep 17 00:00:00 2001 From: lauramargar <114984466+lauramargar@users.noreply.github.com> Date: Tue, 8 Aug 2023 15:54:26 +0200 Subject: [PATCH] feat: minor adjustments in archetype design (#304) EMP-771 --- public/snippet-script.js | 2 +- src/components/column-picker.vue | 7 +++---- src/components/mobile/mobile-open-aside.vue | 2 +- .../my-history/custom-my-history.vue | 12 +----------- .../my-history/my-history-aside.vue | 19 ++++--------------- .../my-history-confirm-disable-modal.vue | 13 ++++++++----- .../pre-search/custom-query-preview.vue | 2 +- .../results/custom-recommendations.vue | 4 ++-- src/components/search-box.vue | 2 +- src/components/search/no-results-message.vue | 15 ++++++++++----- .../results/custom-next-query-preview.vue | 5 ++++- .../search/results/partial-results.vue | 2 +- src/components/search/spellcheck-message.vue | 18 ++++++++++++------ src/i18n/messages/en.messages.json | 2 +- src/i18n/messages/es.messages.json | 2 +- src/i18n/messages/fr.messages.json | 2 +- src/i18n/messages/it.messages.json | 2 +- src/i18n/messages/pt.messages.json | 2 +- 18 files changed, 54 insertions(+), 59 deletions(-) diff --git a/public/snippet-script.js b/public/snippet-script.js index a9e6d7fa..03e47912 100644 --- a/public/snippet-script.js +++ b/public/snippet-script.js @@ -48,7 +48,7 @@ const instance = popFromURLParameters('instance') || 'empathy'; const env = getEnv(); const scope = popFromURLParameters('scope') || 'desktop'; const lang = popFromURLParameters('lang') || 'en'; -const device = popFromURLParameters('device') || 'mobile'; +const device = popFromURLParameters('device') || undefined; const uiLang = popFromURLParameters('uiLang') || lang; const currency = popFromURLParameters('currency') || 'EUR'; const consent = popFromURLParameters('consent') !== 'false'; diff --git a/src/components/column-picker.vue b/src/components/column-picker.vue index c12df1cf..f0aa012f 100644 --- a/src/components/column-picker.vue +++ b/src/components/column-picker.vue @@ -1,13 +1,12 @@ @@ -60,7 +52,6 @@ } from '@empathyco/x-components'; import { MyHistory, HistoryQuery } from '@empathyco/x-components/history-queries'; import { defineComponent } from 'vue'; - import NoHistoryIcon from './no-history-icon.vue'; export default defineComponent({ components: { @@ -68,7 +59,6 @@ CrossTinyIcon, HistoryIcon, MyHistory, - NoHistoryIcon, HistoryQuery }, setup() { diff --git a/src/components/my-history/my-history-aside.vue b/src/components/my-history/my-history-aside.vue index a64a9020..52e080d2 100644 --- a/src/components/my-history/my-history-aside.vue +++ b/src/components/my-history/my-history-aside.vue @@ -3,25 +3,19 @@ class="x-scroll x-flex x-min-h-0 x-flex-1 x-flex-col x-bg-neutral-0 desktop:x-overflow-hidden" >
- - +

{{ $t('myHistory.title') }}

-
- - -
-
@@ -54,23 +48,18 @@