mirror of
https://github.com/uthvah/sync-embeds.git
synced 2026-07-22 06:43:40 +00:00
Relocate 'Render as callout' setting
This commit is contained in:
parent
d8e8566e15
commit
8e56aeb232
1 changed files with 11 additions and 11 deletions
|
|
@ -14,6 +14,16 @@ class SyncEmbedsSettingTab extends PluginSettingTab {
|
|||
|
||||
// === APPEARANCE SECTION ===
|
||||
containerEl.createEl('h3', { text: 'Appearance' });
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('Render as callout')
|
||||
.setDesc('Render embeds as callouts with sticky headers and collapse functionality')
|
||||
.addToggle(toggle => toggle
|
||||
.setValue(this.plugin.settings.renderAsCallout)
|
||||
.onChange(async (value) => {
|
||||
this.plugin.settings.renderAsCallout = value;
|
||||
await this.plugin.saveSettings();
|
||||
}));
|
||||
|
||||
// Height presets + custom
|
||||
new Setting(containerEl)
|
||||
|
|
@ -158,16 +168,6 @@ class SyncEmbedsSettingTab extends PluginSettingTab {
|
|||
await this.plugin.saveSettings();
|
||||
}));
|
||||
|
||||
new Setting(containerEl)
|
||||
.setName('Render as callout')
|
||||
.setDesc('Render embeds as callouts with sticky headers and collapse functionality')
|
||||
.addToggle(toggle => toggle
|
||||
.setValue(this.plugin.settings.renderAsCallout)
|
||||
.onChange(async (value) => {
|
||||
this.plugin.settings.renderAsCallout = value;
|
||||
await this.plugin.saveSettings();
|
||||
}));
|
||||
|
||||
// === HEADER MANAGEMENT SECTION ===
|
||||
containerEl.createEl('h3', { text: 'Header Management' });
|
||||
|
||||
|
|
@ -360,4 +360,4 @@ class SyncEmbedsSettingTab extends PluginSettingTab {
|
|||
}
|
||||
}
|
||||
|
||||
module.exports = SyncEmbedsSettingTab;
|
||||
module.exports = SyncEmbedsSettingTab;
|
||||
|
|
|
|||
Loading…
Reference in a new issue