Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Dyldog committed Sep 2, 2021
1 parent e2781d8 commit 7eadb13
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 5 additions & 4 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ class ZettelSuggester extends FuzzySuggestModal<string> {
this.completion = completion;
this.emptyStateText = "No zettels found";
this.setPlaceholder("Search for a zettel...");
console.log(this.initialQuery)
console.log(this.initialQuery);
}

onOpen() {
Expand All @@ -490,11 +490,12 @@ class ZettelSuggester extends FuzzySuggestModal<string> {
renderSuggestion(value: FuzzyMatch<string>, el: HTMLElement) {
el.setText(value.item);

let matches = value.match.matches
if (matches == null || matches.length == 0) { return }
let matches = value.match.matches;
if (matches == null || matches.length == 0) {
return;
}
let start = matches[0][0];
let end = matches[0][1];


let range = new Range();

Expand Down
8 changes: 4 additions & 4 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.zettel-modal-container {
display: flex;
display: flex;
}

.zettel-modal-textbox {
flex-grow: 100;
margin-right: 10px;
}
flex-grow: 100;
margin-right: 10px;
}

0 comments on commit 7eadb13

Please sign in to comment.