Skip to content

Commit

Permalink
fix: add css class and use flex for suggest items
Browse files Browse the repository at this point in the history
  • Loading branch information
AB1908 committed Oct 24, 2022
1 parent e4af302 commit 9dc2c07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/colorpicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export class ColorPicker extends FuzzySuggestModal<number> {
}

renderSuggestion(item: FuzzyMatch<number>, el: HTMLElement): void {
el.addClass("colorpicker");
const colorDiv = el.createDiv("color-box");
colorDiv.style.backgroundColor = `#${integerToRGBA(item.item).slice(0,6)}`;
const div = el.createDiv();
Expand Down

0 comments on commit 9dc2c07

Please sign in to comment.