From 2863e0b2ce4bfc84f65ae9054eb07a9e34244432 Mon Sep 17 00:00:00 2001 From: Mara Date: Sat, 2 Sep 2023 22:20:26 +0200 Subject: [PATCH] fix(style): wrong style for regex text content --- src/settings/modals/regex_edition.ts | 1 + src/styles.css | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/settings/modals/regex_edition.ts b/src/settings/modals/regex_edition.ts index 4523f994..05856f0e 100644 --- a/src/settings/modals/regex_edition.ts +++ b/src/settings/modals/regex_edition.ts @@ -183,6 +183,7 @@ export class ModalRegexOnContents extends Modal { onOpen() { const {contentEl} = this; contentEl.empty(); + contentEl.addClasses(["github-publisher", "modals", "regex", "on-contents"]); contentEl .createEl("p", { text: i18next.t("settings.regexReplacing.modal.title.text") , diff --git a/src/styles.css b/src/styles.css index 8766ff3d..4ac3c196 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1,7 +1,7 @@ /* styles.css */ /* ---------- MODALS REGEX ---------- */ -.github-publisher.modals.regex.file-path-name .setting-item.entry { +.github-publisher.modals .setting-item.entry { border: 0 !important; padding: 5px !important; } @@ -12,11 +12,11 @@ hr.github-publisher-hr { } -.github-publisher.modals.regex.file-path-name .setting-item.entry input { +.github-publisher.modals .setting-item.entry input { width: 100%; } -.setting-item.entry .setting-item-info { +.github-publisher.modals .setting-item.entry .setting-item-info { display: none; }