Skip to content

Commit f13b9dc

Browse files
committed
fix redundant search button issue
1 parent ab7f427 commit f13b9dc

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

client/modules/IDE/components/Searchbar.jsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,9 @@ class Searchbar extends React.Component {
4747
const { searchValue } = this.state;
4848
return (
4949
<div className="searchbar">
50-
<button
51-
type="submit"
52-
className="searchbar__button"
53-
onClick={this.handleSearchEnter}
54-
>
50+
<div className="searchbar__button">
5551
<InlineSVG className="searchbar__icon" src={searchIcon} />
56-
</button>
52+
</div>
5753
<input
5854
className="searchbar__input"
5955
type="text"

client/styles/components/_searchbar.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222
width: #{31 / $base-font-size}rem;
2323
height: #{36 / $base-font-size}rem;
2424
position: absolute;
25-
padding: 0;
25+
display: flex;
26+
justify-content: center;
27+
align-items: center;
2628
border-right: solid 1px;
2729
@include themify() {
2830
border-right-color: getThemifyVariable('input-border-color');

0 commit comments

Comments
 (0)