fix search view when no results, release 2.4.1

This commit is contained in:
Tao Bror Bojlén 2019-08-04 18:25:50 +03:00
parent a4e02e6f76
commit cc541b9ddf
No known key found for this signature in database
GPG Key ID: C6EC7AAB905F9E6F
5 changed files with 10 additions and 4 deletions

View File

@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security ### Security
## [2.4.1 - 2019-08-04]
### Fixed
- Fixed a wonky search UI when there are no results.
## [2.4.0 - 2019-08-04] ## [2.4.0 - 2019-08-04]
### Added ### Added

View File

@ -22,7 +22,7 @@ config :backend, Backend.Repo, queue_target: 5000
instances_config_path = instances_config_path =
if System.get_env("MIX_ENV") == "prod", if System.get_env("MIX_ENV") == "prod",
do: "lib/backend-2.4.0/priv/elasticsearch/instances.json", do: "lib/backend-2.4.1/priv/elasticsearch/instances.json",
else: "priv/elasticsearch/instances.json" else: "priv/elasticsearch/instances.json"
config :backend, Backend.Elasticsearch.Cluster, config :backend, Backend.Elasticsearch.Cluster,

View File

@ -4,7 +4,7 @@ defmodule Backend.MixProject do
def project do def project do
[ [
app: :backend, app: :backend,
version: "2.4.0", version: "2.4.1",
elixir: "~> 1.5", elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env()), elixirc_paths: elixirc_paths(Mix.env()),
compilers: [:phoenix, :gettext] ++ Mix.compilers(), compilers: [:phoenix, :gettext] ++ Mix.compilers(),

View File

@ -1,6 +1,6 @@
{ {
"name": "frontend", "name": "frontend",
"version": "2.4.0", "version": "2.4.1",
"private": true, "private": true,
"scripts": { "scripts": {
"start": "NODE_ENV=development react-scripts start", "start": "NODE_ENV=development react-scripts start",

View File

@ -120,7 +120,7 @@ class SearchScreen extends React.PureComponent<ISearchScreenProps, ISearchScreen
return ( return (
<> <>
{isSmallScreen && results.length === 0 && this.renderMobileWarning()} {isSmallScreen && results.length === 0 && this.renderMobileWarning()}
<SearchBarContainer hasSearchResults={results.length > 0} hasError={!!error}> <SearchBarContainer hasSearchResults={!!query && !!results} hasError={!!error}>
<H2>Find an instance</H2> <H2>Find an instance</H2>
<InputGroup <InputGroup
leftIcon={IconNames.SEARCH} leftIcon={IconNames.SEARCH}