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

Commit 8759fa7

Browse files
committed
Merge branch 'dev'
2 parents e2e8396 + 0cc9445 commit 8759fa7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/snippet-injector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default {
3636

3737
create() {
3838
var selection = atom.workspace.getActiveTextEditor().getSelectedText();
39-
var grammar = atom.workspace.getActiveTextEditor().getGrammar();
39+
var grammar = atom.workspace.getActiveTextEditor().getGrammar().name;
4040
var storage = this.storage;
4141
const inputPrompt = Util.promptUser({
4242
placeholder: 'Enter snippet title',

styles/snippet-injector.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@
2222
#prompt-confirm, #prompt-cancel {
2323
width: 18%;
2424
height: 30px;
25-
font-size: 14px;
25+
font-size: 13px;
2626
}
2727
}
2828

2929
#search-prompt {
30+
min-width: 500px;
3031

3132
.title {
3233
margin-top: 0;
@@ -42,6 +43,7 @@
4243
padding: 10px;
4344
font-size: 13px;
4445
border-bottom: 1px solid grey;
46+
cursor: pointer;
4547

4648
.value {
4749
margin: 0;

0 commit comments

Comments
 (0)