added a warning to the padding description

This commit is contained in:
Ell 2022-04-08 14:03:32 +02:00
parent ce2bd9af3a
commit 0ab4c18082

View file

@ -18,7 +18,13 @@ export class CustomFramesSettingTab extends PluginSettingTab {
new Setting(this.containerEl)
.setName("Frame Padding")
.setDesc("The padding that should be left around the inside of custom frame panes, in pixels.")
.setDesc(createFragment(f => {
f.createSpan({ text: "The padding that should be left around the inside of custom frame panes, in pixels." });
f.createEl("br");
f.createEl("em", { text: "Note that decreasing this padding too much will increase the likelihood of a " });
f.createEl("a", { text: "known issue", href: "https://github.com/Ellpeck/ObsidianCustomFrames#%EF%B8%8F-known-issues" });
f.createEl("em", { text: "." });
}))
.addText(t => {
t.inputEl.type = "number";
t.setValue(String(this.plugin.settings.padding));