mirror of
https://github.com/ozavodny/obsidian-copy-inline-code-plugin.git
synced 2026-07-22 08:10:25 +00:00
add warn message
This commit is contained in:
parent
5102afba9b
commit
95a1c06a6a
2 changed files with 12 additions and 3 deletions
|
|
@ -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 {
|
|||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,4 +14,9 @@
|
|||
/* Reading Mode */
|
||||
code:hover .show-on-hover {
|
||||
opacity: 1.0;
|
||||
}
|
||||
}
|
||||
|
||||
.tasks-setting-important {
|
||||
color: red;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue