From 7116e8b33abd45eacf42c8cd5bf4116749f10f6d Mon Sep 17 00:00:00 2001 From: Adam Fletcher Date: Tue, 15 Apr 2025 08:10:39 +0100 Subject: [PATCH] Style settings textarea with CSS --- main.ts | 4 +--- styles.css | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) 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