Skip to content

Commit

Permalink
feat(UI): Better textArea (bigger) for settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Mara-Li committed Nov 29, 2022
1 parent f27848e commit 261a11f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugin/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(","))
Expand All @@ -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(
Expand Down Expand Up @@ -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(","))
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down
5 changes: 5 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 261a11f

Please sign in to comment.