Relocate 'Render as callout' setting

This commit is contained in:
Verity 2026-02-21 23:38:55 +00:00 committed by GitHub
parent d8e8566e15
commit 8e56aeb232
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;