Skip to content

Commit

Permalink
fix: Admonition modal image button switched to icon
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Feb 23, 2022
1 parent 829a990 commit 02882e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -765,9 +765,7 @@ class SettingsModal extends Modal {
text.inputEl.onblur = validate;
})
.addButton((b) => {
b.setButtonText(t("Upload Image")).setTooltip(
t("Upload Image")
);
b.setButtonText(t("Upload Image")).setIcon('image-file');
b.buttonEl.addClass("admonition-file-upload");
b.buttonEl.appendChild(input);
b.onClick(() => input.click());
Expand Down

0 comments on commit 02882e7

Please sign in to comment.