Skip to content

Commit

Permalink
[TagSuggester] Tweak output order relative to SmartAlias
Browse files Browse the repository at this point in the history
  • Loading branch information
bitWolfy committed Mar 1, 2024
1 parent c00081c commit b0af67a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/modules/misc/TagSuggester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ export class TagSuggester extends RE6Module {

// Create the element structure
this.tagOutput = $("#post_tags");
const parentContainer = this.tagOutput.parent()
.addClass("tag-suggester-container");
this.container = $("<tag-suggester>")
.attr("ready", "true")
.on("recount", () => { this.container.attr("count", this.container.children().length); })
.appendTo(this.tagOutput.parent());
.appendTo(parentContainer);

// Initialize the listeners
this.tagInput = [];
Expand Down
9 changes: 9 additions & 0 deletions src/scss/modules/_tag-suggester.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ tag-suggester {
}

}

.tag-suggester-container {
display: flex;
flex-flow: column;

smart-alias {
order: 10;
}
}

0 comments on commit b0af67a

Please sign in to comment.