From b4804d3722a145546772bf589a24c762df7210af Mon Sep 17 00:00:00 2001 From: Nathan G Date: Wed, 11 Oct 2023 07:34:27 -0700 Subject: [PATCH] Remove the unused loading circle - Move text to en-us.json --- src/components/search/SearchResults.tsx | 2 +- src/components/search/searchfields.scss | 20 -------------------- src/strings/en-us.json | 1 + 3 files changed, 2 insertions(+), 21 deletions(-) diff --git a/src/components/search/SearchResults.tsx b/src/components/search/SearchResults.tsx index 04607ef92..56f618ccc 100644 --- a/src/components/search/SearchResults.tsx +++ b/src/components/search/SearchResults.tsx @@ -335,7 +335,7 @@ const SearchResults: FunctionComponent = ({ serverId = windo /> {allEmpty && !isLoading && ( -
Sorry! No results found for "{query}"
+
{globalize.translate('SearchResultsEmpty')}"{query}"
)} )} diff --git a/src/components/search/searchfields.scss b/src/components/search/searchfields.scss index 4580dfcb8..b93638bdf 100644 --- a/src/components/search/searchfields.scss +++ b/src/components/search/searchfields.scss @@ -20,23 +20,3 @@ left: 50%; transform: translate(-50%, -50%); } - -// New styles for loading circle -.loading-circle { - border: 5px solid #557ece; - border-radius: 50%; - border-top: 5px solid #1b1b1bd7; - width: 65px; - height: 65px; - animation: spin 1s linear infinite; - margin: auto; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); -} - -@keyframes spin { - 0% { transform: translate(-50%, -50%) rotate(0deg); } - 100% { transform: translate(-50%, -50%) rotate(360deg); } -} diff --git a/src/strings/en-us.json b/src/strings/en-us.json index 46ac58695..88b281ec8 100644 --- a/src/strings/en-us.json +++ b/src/strings/en-us.json @@ -1427,6 +1427,7 @@ "SearchForMissingMetadata": "Search for missing metadata", "SearchForSubtitles": "Search for Subtitles", "SearchResults": "Search Results", + "SearchResultsEmpty": "Sorry! No results found for ", "Season": "Season", "SecondarySubtitles": "Secondary Subtitles", "SelectAdminUsername": "Please select a username for the admin account.",