Skip to content

Commit

Permalink
Merge pull request #89 from hokaccha/fix-icon-font
Browse files Browse the repository at this point in the history
Use <i> instead of pseudo element
  • Loading branch information
hokaccha authored Feb 10, 2020
2 parents 13b3f00 + a8d808a commit e3eb208
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 1 addition & 4 deletions src/renderer/components/TableList/TableList.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
position: relative;
}

.TableList-filter:before {
content: "\f002";
font-family: "FontAwesome";
display: inline-block;
.TableList-filter > i {
position: absolute;
left: 14px;
top: 16px;
Expand Down
1 change: 1 addition & 0 deletions src/renderer/components/TableList/TableList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export default class TableList extends React.Component<Props> {
return (
<div className="TableList">
<div className="TableList-filter">
<i className="fas fa-search" />
<input type="search" value={dataSource.tableFilter} onChange={e => this.handleChangeTableFilter(e)} />
</div>
<ul>{items}</ul>
Expand Down

0 comments on commit e3eb208

Please sign in to comment.