Skip to content

Commit

Permalink
Merge pull request #170 from clarin-eric/smalluifix
Browse files Browse the repository at this point in the history
small ui alignment fix
  • Loading branch information
andmor- authored Dec 18, 2020
2 parents e2cabcc + 75bf51d commit 214e0bb
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions webui/src/components/ToolList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,18 @@ export class ToolListWithControls extends React.Component {
highlighter={makeHighlighter(this.state.searchTerms)}
selectResourceMatch={this.props.selectResourceMatch}/>
</div>
<div>
{ hiddenTools.length > 0 &&
<p className="alert alert-info">There are {hiddenTools.length} tools not matching the search term.</p>
</div>
<div className="row">
<div className="col-md-12">
{ hiddenTools.length > 0 ?
<p className="alert alert-info" style={{marginTop:20}}>
There are {hiddenTools.length} tools not matching the search term.
</p> : false
}
{ tools.length == 0 && hiddenTools.length == 0 &&
<p className="alert alert-info">There are no tools perfectly matching the resource(s).</p>
{ tools.length == 0 && hiddenTools.length == 0 ?
<p className="alert alert-info" style={{marginTop:20}}>
There are no tools perfectly matching the resource(s).
</p> : false
}
</div>
</div>
Expand All @@ -111,10 +117,13 @@ export class ToolListWithControls extends React.Component {
</div>
</div>
<div className="row">
{ hiddenPartial.length
? <p className="alert alert-info">There are {hiddenPartial.length} tools not matching the search term.</p>
: false
}
<div className="col-md-12">
{ hiddenPartial.length ?
<p className="alert alert-info" style={{marginTop:20}}>
There are {hiddenPartial.length} tools not matching the search term.
</p> : false
}
</div>
</div>
</React.Fragment> : false
}
Expand Down

0 comments on commit 214e0bb

Please sign in to comment.