From 261a11fb70fc3ab4254811abca47bc798351bf93 Mon Sep 17 00:00:00 2001 From: Mara Date: Tue, 29 Nov 2022 14:17:42 +0100 Subject: [PATCH] feat(UI): Better textArea (bigger) for settings --- plugin/settings.ts | 5 +++++ styles.css | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/plugin/settings.ts b/plugin/settings.ts index f09c1648..8610f9e8 100644 --- a/plugin/settings.ts +++ b/plugin/settings.ts @@ -460,6 +460,7 @@ export class GithubPublisherSettings extends PluginSettingTab { new Setting(this.containerEl) .setName(subSettings("textConversion.tags.header") as string) .setDesc(subSettings("textConversion.tags.desc") as string) + .setClass("obs-git-publisher-textarea") .addTextArea((text) => { text.setPlaceholder("field_name") .setValue(this.plugin.settings.dataviewFields.join(",")) @@ -473,6 +474,7 @@ export class GithubPublisherSettings extends PluginSettingTab { new Setting(this.containerEl) .setName(subSettings("textConversion.tags.ExcludeHeader") as string) .setDesc(subSettings("textConversion.tags.ExcludeDesc") as string) + .setClass("obs-git-publisher-textarea") .addTextArea((text) => { text.setPlaceholder("field value") .setValue( @@ -557,6 +559,7 @@ export class GithubPublisherSettings extends PluginSettingTab { new Setting(containerEl) .setName(settings("embed", "transferMetaFile") as string) .setDesc(settings("embed", "transferMetaFileDesc") as string) + .setClass("obs-git-publisher-textarea") .addTextArea((text) => { text.setPlaceholder("banner") .setValue(this.plugin.settings.metadataFileFields.join(",")) @@ -635,6 +638,7 @@ export class GithubPublisherSettings extends PluginSettingTab { const autoCleanExcludedSettings = new Setting(containerEl) .setName(settings("githubWorkflow", "excludedFiles") as string) .setDesc(settings("githubWorkflow", "excludedFilesDesc") as string) + .setClass("obs-git-publisher-textarea") .addTextArea((textArea) => { textArea .setPlaceholder("docs/assets/js, docs/assets/logo") @@ -667,6 +671,7 @@ export class GithubPublisherSettings extends PluginSettingTab { new Setting(containerEl) .setName(settings("plugin", "excludedFolder") as string) .setDesc(settings("plugin", "excludedFolderDesc") as string) + .setClass("obs-git-publisher-textarea") .addTextArea((textArea) => textArea .setPlaceholder("_assets, Archive") diff --git a/styles.css b/styles.css index 81ffdd9e..3612a77e 100644 --- a/styles.css +++ b/styles.css @@ -51,3 +51,8 @@ button.obs-git-publisher-censor-flags:hover { box-shadow: none; border: 0; } + +.obs-git-publisher-textarea textarea { + width: 250px; + height: 100px; +}