mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 09:30:31 +03:00
Improved tags filtering control
This commit is contained in:
parent
c80fea2877
commit
b3be7df890
3 changed files with 8 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
||||||
import searchIcon from '@fortawesome/fontawesome-free-solid/faSearch';
|
import searchIcon from '@fortawesome/fontawesome-free-solid/faSearch';
|
||||||
|
import tagsIcon from '@fortawesome/fontawesome-free-solid/faTags';
|
||||||
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
|
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
|
@ -41,7 +42,7 @@ export class SearchBar extends React.Component {
|
||||||
|
|
||||||
{!isEmpty(selectedTags) && (
|
{!isEmpty(selectedTags) && (
|
||||||
<h4 className="search-bar__selected-tag mt-2">
|
<h4 className="search-bar__selected-tag mt-2">
|
||||||
<small>Filtering by tags:</small>
|
<FontAwesomeIcon icon={tagsIcon} className="search-bar__tags-icon" />
|
||||||
|
|
||||||
{selectedTags.map(tag => <Tag
|
{selectedTags.map(tag => <Tag
|
||||||
text={tag}
|
text={tag}
|
||||||
|
|
|
@ -19,3 +19,7 @@
|
||||||
@include vertical-align();
|
@include vertical-align();
|
||||||
right: 15px;
|
right: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.search-bar__tags-icon {
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
|
|
@ -16,6 +16,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag__close-selected-tag.tag__close-selected-tag:hover {
|
.tag__close-selected-tag.tag__close-selected-tag:hover {
|
||||||
color: inherit;
|
color: inherit !important;
|
||||||
opacity: 1;
|
opacity: 1 !important;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue