From 5f3ab0f019e9d7289f40be528150a403ca833686 Mon Sep 17 00:00:00 2001 From: JF-Cozy Date: Thu, 17 Oct 2024 14:37:47 +0200 Subject: [PATCH] refactor(Assistant): Move SuggestionsPlaceholder in right folder --- src/assistant/Conversations/styles.styl | 5 ----- src/assistant/Search/SearchBarMobile.jsx | 2 +- .../{Conversations => Search}/SuggestionsPlaceholder.jsx | 0 src/assistant/Search/styles.styl | 5 +++++ 4 files changed, 6 insertions(+), 6 deletions(-) rename src/assistant/{Conversations => Search}/SuggestionsPlaceholder.jsx (100%) diff --git a/src/assistant/Conversations/styles.styl b/src/assistant/Conversations/styles.styl index 5d05de5aa9..e7fe239cc4 100644 --- a/src/assistant/Conversations/styles.styl +++ b/src/assistant/Conversations/styles.styl @@ -13,8 +13,3 @@ +gt-mobile() max-height 155px - -.suggestionsPlaceholder - position absolute - opacity 0.42 - pointer-events none diff --git a/src/assistant/Search/SearchBarMobile.jsx b/src/assistant/Search/SearchBarMobile.jsx index b6e02e1509..0c0c4d724b 100644 --- a/src/assistant/Search/SearchBarMobile.jsx +++ b/src/assistant/Search/SearchBarMobile.jsx @@ -3,7 +3,7 @@ import React, { useRef } from 'react' import SearchBar from 'cozy-ui/transpiled/react/SearchBar' import useEventListener from 'cozy-ui/transpiled/react/hooks/useEventListener' -import SuggestionsPlaceholder from '../Conversations/SuggestionsPlaceholder' +import SuggestionsPlaceholder from './SuggestionsPlaceholder' import styles from '../Conversations/styles.styl' diff --git a/src/assistant/Conversations/SuggestionsPlaceholder.jsx b/src/assistant/Search/SuggestionsPlaceholder.jsx similarity index 100% rename from src/assistant/Conversations/SuggestionsPlaceholder.jsx rename to src/assistant/Search/SuggestionsPlaceholder.jsx diff --git a/src/assistant/Search/styles.styl b/src/assistant/Search/styles.styl index ce11573341..09eeab688c 100644 --- a/src/assistant/Search/styles.styl +++ b/src/assistant/Search/styles.styl @@ -1,2 +1,7 @@ .searchBarDesktop--result border-radius 28px 28px 0 0 !important + +.suggestionsPlaceholder + position absolute + opacity 0.42 + pointer-events none