mirror of
https://github.com/adamfletcher/obsidian-cut-the-fluff.git
synced 2026-07-22 05:46:18 +00:00
Style settings textarea with CSS
This commit is contained in:
parent
397a567cc7
commit
7116e8b33a
2 changed files with 7 additions and 3 deletions
4
main.ts
4
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");
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
Loading…
Reference in a new issue