From 75bf51d2eb2c27434e728b972479e6a139de38c2 Mon Sep 17 00:00:00 2001 From: Emanuel Dima Date: Thu, 17 Dec 2020 10:30:06 +0100 Subject: [PATCH] small ui alignment fix --- webui/src/components/ToolList.jsx | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/webui/src/components/ToolList.jsx b/webui/src/components/ToolList.jsx index 86a67aa2c..e3dfdf968 100644 --- a/webui/src/components/ToolList.jsx +++ b/webui/src/components/ToolList.jsx @@ -87,12 +87,18 @@ export class ToolListWithControls extends React.Component { highlighter={makeHighlighter(this.state.searchTerms)} selectResourceMatch={this.props.selectResourceMatch}/> -
- { hiddenTools.length > 0 && -

There are {hiddenTools.length} tools not matching the search term.

+
+
+
+ { hiddenTools.length > 0 ? +

+ There are {hiddenTools.length} tools not matching the search term. +

: false } - { tools.length == 0 && hiddenTools.length == 0 && -

There are no tools perfectly matching the resource(s).

+ { tools.length == 0 && hiddenTools.length == 0 ? +

+ There are no tools perfectly matching the resource(s). +

: false }
@@ -111,10 +117,13 @@ export class ToolListWithControls extends React.Component {
- { hiddenPartial.length - ?

There are {hiddenPartial.length} tools not matching the search term.

- : false - } +
+ { hiddenPartial.length ? +

+ There are {hiddenPartial.length} tools not matching the search term. +

: false + } +
: false }