diff --git a/main.ts b/main.ts index aef7aee..e7a0662 100644 --- a/main.ts +++ b/main.ts @@ -378,9 +378,7 @@ class CutTheFluggSettingsTab extends PluginSettingTab { // Don't save setting here because of partial edits }) .then(textArea => { - textArea.inputEl.style.width = "100%"; - textArea.inputEl.rows = 10; - textArea.inputEl.style.resize = "none"; + textArea.inputEl.addClass("settings-full-width-textarea"); }); diff --git a/styles.css b/styles.css index 3e33fe1..41caba2 100644 --- a/styles.css +++ b/styles.css @@ -12,4 +12,10 @@ .fluff-strikethrough { text-decoration-line: line-through; color: var(--text-faint); +} + +.settings-full-width-textarea { + width: 100%; + resize: none; + height: 12em; } \ No newline at end of file