refactor: update class names to be more specific to the plugin

This commit is contained in:
rivea0 2025-05-04 15:12:28 +03:00
parent 2468a31dad
commit 0407d4fa71
3 changed files with 6 additions and 6 deletions

View file

@ -110,7 +110,7 @@ class HighlighterPlugin implements PluginValue {
makeDeco(ranges: IRange[]) {
const deco = [];
const highlightDeco = Decoration.mark({
class: 'highlight-text',
class: 'match-syntax-highlight-text',
attributes: { 'data-contents': 'string' },
});

View file

@ -9,9 +9,9 @@ export class MatchTextModal extends Modal {
const settingContent = this.contentEl;
const matchInput = new Setting(settingContent);
matchInput.setClass('match-input-setting');
matchInput.setClass('match-syntax-input-setting');
matchInput.addText((text) => {
text.inputEl.addClass('match-input');
text.inputEl.addClass('match-syntax-input-element');
text.setPlaceholder('#adverb+ good...');
text.onChange((value) => {
matchStr = value;

View file

@ -1,11 +1,11 @@
.highlight-text {
.match-syntax-highlight-text {
background-color: var(--text-highlight-bg);
}
.match-input-setting {
.match-syntax-input-setting {
display: block;
}
.match-input {
.match-syntax-input-element {
width: 100%;
}