Skip to content

Commit

Permalink
RoleMentionIcons - fix for larger text sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Neodymium7 committed Oct 7, 2024
1 parent a62efc2 commit 9328e07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion RoleMentionIcons/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ export default class RoleMentionIcons extends BasePlugin {
}

onStart() {
DOM.addStyle(".role-mention-icon { position: relative; top: 2px; margin-left: 4px; }");
DOM.addStyle(
`.role-mention-icon { position: relative; height: 1em; width: 1em; margin-left: 4px; } .${roleMention} { display: inline-flex; align-items: center; }`
);
Strings.subscribe();

const elements = Array.from(document.getElementsByClassName(roleMention));
Expand Down

0 comments on commit 9328e07

Please sign in to comment.