diff options
| author | vellichora <fangrui_tong@brown.edu> | 2020-03-11 15:53:41 -0400 |
|---|---|---|
| committer | vellichora <fangrui_tong@brown.edu> | 2020-03-11 15:53:41 -0400 |
| commit | bf70d94b36cfe38be78ff9935ffecdbe354f1a28 (patch) | |
| tree | 130f8e537a3abcc83e323137b9045fcc65449fe6 /src/client/views/search/SearchBox.tsx | |
| parent | 0777ad8db317999a4a878a4ab91ff706426303b7 (diff) | |
more css
Diffstat (limited to 'src/client/views/search/SearchBox.tsx')
| -rw-r--r-- | src/client/views/search/SearchBox.tsx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx index 1025629d5..4f0ca5709 100644 --- a/src/client/views/search/SearchBox.tsx +++ b/src/client/views/search/SearchBox.tsx @@ -391,14 +391,13 @@ export class SearchBox extends React.Component { </div> <div className="filter-form" style={this._filterOpen ? { display: "flex" } : { display: "none" }}> - <div className="filter-header"> - <button className="filter-item" onClick={this.handleWordQueryChange}>Keywords</button> - <button className="filter-item" onClick={this.handleKeyChange}>Keys</button> - <button className="filter-item" onClick={this.handleNodeChange}>Nodes</button> + <div className="filter-header" style={this._filterOpen ? {} : { display: "none" }}> + <button className="filter-item" style={this._basicWordStatus ? { background: "#aaaaa3", } : {}} onClick={this.handleWordQueryChange}>Keywords</button> + <button className="filter-item" style={this._keyStatus ? { background: "#aaaaa3" } : {}} onClick={this.handleKeyChange}>Keys</button> + <button className="filter-item" style={this._nodeStatus ? { background: "#aaaaa3" } : {}} onClick={this.handleNodeChange}>Nodes</button> </div> <div className="filter-body" style={this._nodeStatus ? { display: "flex" } : { display: "none" }}> <IconBar /> - </div> <div style={this._keyStatus ? { display: "flex" } : { display: "none" }}> |
