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 <brokun0128@gmail.com>
  • Loading branch information
BroKun committed Sep 17, 2019
1 parent ec85ece commit 7b65766
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 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 All @@ -384,6 +391,7 @@

.replace-all-button.disabled {
opacity: 0.4;
cursor: default;
}

.search-in-workspace-tab-icon {
Expand Down

0 comments on commit 7b65766

Please sign in to comment.