Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Commit c51e1fd

Browse files
committed
FIX: search prompt styling
1 parent 749b8e7 commit c51e1fd

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

lib/util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default class Util {
5050
$('#prompt-confirm').removeClass('disabled');
5151
}
5252
}
53-
})
53+
});
5454
$('#prompt-confirm').on('click',function(e) {
5555
if(!$(this).hasClass('disabled')) {
5656
modal.destroy();
@@ -119,7 +119,7 @@ export default class Util {
119119
listDOMstring += '<p class="notice"><i>'+options.nothingfound+'</i></p>';
120120
}
121121
$('#prompt-list').append(listDOMstring);
122-
})
122+
});
123123
$('#search-prompt').find('.list-item').on('click',function(e) {
124124
if($(e.target).hasClass('value')) {
125125
var value = $(e.target).text();

styles/snippet-injector.less

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,15 @@
2828

2929
#search-prompt {
3030

31+
.title {
32+
margin-top: 0;
33+
margin-bottom: 10px;
34+
}
35+
3136
#prompt-list {
3237
margin-bottom: 20px;
38+
max-height: 250px;
39+
overflow-y: scroll;
3340

3441
.list-item {
3542
padding: 10px;
@@ -39,6 +46,10 @@
3946
.value {
4047
margin: 0;
4148
}
49+
50+
&:first-of-type {
51+
border-top: 1px solid grey;
52+
}
4253
}
4354
}
4455
}

0 commit comments

Comments
 (0)