diff --git a/src/main.ts b/src/main.ts index 7c30adb..985762a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -60,7 +60,7 @@ export default class TopBarButtonsPlugin extends Plugin { ) { const { id, icon, name } = button; const iconSize = getIconSize(); - const classes = ['view-action', PLUGIN_CLASS_NAME]; + const classes = ['view-action', 'icon-btn', PLUGIN_CLASS_NAME]; const buttonIcon = getButtonIcon(name, id, icon, iconSize, classes); diff --git a/src/utils.ts b/src/utils.ts index 8ec9ebb..2739a86 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -43,7 +43,7 @@ export function getButtonIcon( tag: 'a' | 'div' = 'a' ) { const tooltip = getTooltip(name); - const buttonClasses = classes.concat(['icon-btn', id]); + const buttonClasses = classes.concat([id]); const buttonIcon = createEl(tag, { cls: buttonClasses,