From 0ab4c1808258c18850efc98b4bc4cc82ce0b3e44 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Fri, 8 Apr 2022 14:03:32 +0200 Subject: [PATCH] added a warning to the padding description --- src/settings-tab.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/settings-tab.ts b/src/settings-tab.ts index 1bf70b8..321a113 100644 --- a/src/settings-tab.ts +++ b/src/settings-tab.ts @@ -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));