Skip to content

Commit

Permalink
Improved UI of search-in-workspace
Browse files Browse the repository at this point in the history
- Use pointer cursor when replace-all button is available.
- Search-detail and search-header are horizontally aligned.
- Use absolute position to make the clickable area of the toggle button larger.

Signed-off-by: Brokun <[email protected]>
  • Loading branch information
BroKun committed Sep 19, 2019
1 parent 622a4ae commit d30a2af
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions packages/search-in-workspace/src/browser/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,9 @@
}

.t-siw-search-container .searchHeader .button-container {
text-align: right;
padding-right: 5px;
padding-top: 5px;
text-align: center;
display: flex;
justify-content: flex-end;
justify-content: center;
}

.t-siw-search-container .searchHeader .search-field .option,
Expand All @@ -187,8 +185,16 @@
justify-content: center;
}

.t-siw-search-container .searchHeader .search-details {
position: relative;
padding-top: 5px;
}

.t-siw-search-container .searchHeader .search-details .button-container {
height: 5px;
position: absolute;
width: 25px;
top:0;
right:0;
}

.t-siw-search-container .searchHeader .search-details .button-container .btn{
Expand All @@ -201,7 +207,7 @@

.t-siw-search-container .searchHeader .glob-field-container .glob-field {
margin-bottom: 8px;
margin-left: 17px;
margin-left: 14px;
display: flex;
flex-direction: column;
}
Expand Down Expand Up @@ -373,6 +379,7 @@
height: 100%;
display: inline-block;
background: var(--theia-icon-replace-all) no-repeat center;
cursor: pointer;
}

.result-node-buttons .replace-result {
Expand Down

0 comments on commit d30a2af

Please sign in to comment.