Skip to content

Commit 0055c11

Browse files
committed
feat: update search panel styles
1 parent ce59cf5 commit 0055c11

3 files changed

Lines changed: 6 additions & 11 deletions

File tree

src/htmlContent/search-panel.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
<div id="{{panelID}}" class="search-results bottom-panel vert-resizable top-resizer no-focus">
22
<div class="toolbar simple-toolbar-layout">
33
<div class="title"></div>
4-
<a href="#" class="close">&times;</a>
54
</div>
6-
<div style="display: flex; height: calc(100% - 27px);">
7-
<!--27 px is status bar height. If this is not set, the preview code mirror editor gives weird layout issues at times-->
5+
<div style="display: flex; height: calc(100% - 36px);">
86
<div class="table-container" style="width: 50%; height: 100%;"></div>
97
<div class="search-editor-preview" style="width: 50%; height: 100%;"></div>
108
</div>

src/search/SearchResultsView.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,12 +329,6 @@ define(function (require, exports, module) {
329329
var self = this;
330330
this._panel.$panel
331331
.off(".searchResults") // Remove the old events
332-
.on("dblclick.searchResults", ".toolbar", function() {
333-
self._panel.hide();
334-
})
335-
.on("click.searchResults", ".close", function () {
336-
self._panel.hide();
337-
})
338332
// The link to go the first page
339333
.on("click.searchResults", ".first-page:not(.disabled)", function () {
340334
self._currentStart = 0;

src/styles/brackets.less

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,11 +1908,14 @@ a, img {
19081908

19091909
/* Find in Files results panel - temporary UI, to be replaced with a richer search feature later */
19101910

1911+
.search-results .toolbar {
1912+
padding: 5px 8px;
1913+
}
19111914
.search-results .title {
19121915
.sane-box-model;
1913-
padding-right: 20px;
1916+
margin-left: 4px;
19141917
width: 100%;
1915-
line-height: 25px;
1918+
line-height: 26px;
19161919

19171920
.flex-box;
19181921
.contracting-col {

0 commit comments

Comments
 (0)