add warn message

This commit is contained in:
Oliver Dirr 2023-11-06 08:08:55 +01:00
parent 5102afba9b
commit 95a1c06a6a
2 changed files with 12 additions and 3 deletions

View file

@ -14,7 +14,11 @@ export class CopyInlineCodePluginTab extends PluginSettingTab {
const { containerEl } = this;
containerEl.empty();
containerEl.createEl('p', {
cls: 'tasks-setting-important',
text: 'Changing any settings requires a restart of obsidian.',
});
new Setting(containerEl)
.setName("Show on hover")
.setDesc("Copy icon only visible on hover (restart obsidian after change)")
@ -27,4 +31,4 @@ export class CopyInlineCodePluginTab extends PluginSettingTab {
})
});
}
}
}

View file

@ -14,4 +14,9 @@
/* Reading Mode */
code:hover .show-on-hover {
opacity: 1.0;
}
}
.tasks-setting-important {
color: red;
font-weight: bold;
}