Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Search icon on Windows #187

Merged
merged 2 commits into from
Mar 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/renderer/components/archive/search-field.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import SearchIcon from 'react-icons/lib/md/search';
import styles from '../../styles/search-field';

class SearchField extends Component {
Expand Down Expand Up @@ -41,6 +42,9 @@ class SearchField extends Component {
this.textInput = input;
}}
/>
<span className={styles.icon}>
<SearchIcon/>
</span>
{this.state.value !== '' && <span className={styles.clear} onClick={() => this.handleClearClick()}></span>}
</div>
);
Expand Down
15 changes: 6 additions & 9 deletions src/renderer/styles/search-field.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,13 @@
.wrapper {
position: relative;
flex: 1;
}

&:before {
display: block;
content: "⚲";
position: absolute;
transform: rotate(-45deg);
top: 2px;
left: 4px;
opacity: .5;
}
.icon {
position: absolute;
top: 2px;
left: 3px;
color: rgba(255,255,255,.5);
}

.field {
Expand Down