Skip to content

Commit 67508fb

Browse files
committed
visualpython#12 - instance search box icon changed
1 parent 73a8795 commit 67508fb

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

css/common/instanceEditor.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
#vp-wrapper .vp-ins-select-container .vp-ins-search-icon {
2222
position: absolute;
2323
color: #C4C4C4;
24-
right: 7px;
25-
top: 7px;
24+
right: 5px;
25+
top: 5px;
2626
}
2727
.vp-ins-select-box {
2828
margin-top: 5px;

src/common/vpInstanceEditor.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,13 @@ define([
146146

147147
tag.appendFormatLine('<div class="{0} {1}">', VP_INS_SELECT_CONTAINER, 'attr');
148148
tag.appendFormatLine('<div class="vp-multilang {0}">Attribute</div>', VP_INS_SELECT_TITLE);
149+
150+
tag.appendFormatLine('<div style="{0}">', 'position: relative;');
149151
tag.appendFormatLine('<input class="vp-input {0} {1}" type="text" placeholder="search attribute" />', VP_INS_SEARCH, 'attr');
150-
tag.appendFormatLine('<i class="{0} {1}"></i>', 'fa fa-search', 'vp-ins-search-icon');
151152
tag.appendFormatLine('<input class="{0} {1}" type="hidden"/>', VP_INS_TYPE, 'attr');
153+
tag.appendFormatLine('<i class="{0} {1}"></i>', 'fa fa-search', 'vp-ins-search-icon');
154+
tag.appendLine('</div>');
155+
152156
tag.appendFormatLine('<div class="{0} {1}">', VP_INS_SELECT_BOX, 'attr');
153157
tag.appendFormatLine('<ul class="{0} {1}">', VP_INS_SELECT_LIST, 'attr');
154158
tag.appendLine('</ul>');
@@ -157,9 +161,13 @@ define([
157161

158162
tag.appendFormatLine('<div class="{0} {1}">', VP_INS_SELECT_CONTAINER, 'method');
159163
tag.appendFormatLine('<div class="vp-multilang {0}">Method</div>', VP_INS_SELECT_TITLE);
164+
165+
tag.appendFormatLine('<div style="{0}">', 'position: relative;');
160166
tag.appendFormatLine('<input class="vp-input {0} {1}" type="text" placeholder="search method" />', VP_INS_SEARCH, 'method');
161167
tag.appendFormatLine('<input class="{0} {1}" type="hidden"/>', VP_INS_TYPE, 'method');
162168
tag.appendFormatLine('<i class="{0} {1}"></i>', 'fa fa-search', 'vp-ins-search-icon');
169+
tag.appendLine('</div>');
170+
163171
tag.appendFormatLine('<div class="{0} {1}">', VP_INS_SELECT_BOX, 'method');
164172
tag.appendFormatLine('<ul class="{0} {1}">', VP_INS_SELECT_LIST, 'method');
165173
tag.appendLine('</ul>');

0 commit comments

Comments
 (0)