Skip to content

Commit

Permalink
Merge pull request #13 from syt2/bugfix/icon_size_error
Browse files Browse the repository at this point in the history
fix icon size
  • Loading branch information
syt2 authored Nov 16, 2023
2 parents fd9378c + 6f53b7b commit 4c2dcd5
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
**/build
node_modules
package-lock.json
zotero-cmd.json
zotero-cmd.json
**/builds
Binary file modified addon/chrome/content/icons/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added addon/chrome/content/icons/favicon@0.25x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added addon/chrome/content/icons/favicon@0.5x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed addon/chrome/content/icons/favicon@32.png
Binary file not shown.
2 changes: 1 addition & 1 deletion src/modules/addonTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class AddonTable {
newNode.addEventListener("click", async (event: any) => {
this.showAddonsWindow();
});
newNode.style.listStyleImage = `url(chrome://${config.addonRef}/content/icons/favicon@32.png)`;
newNode.style.listStyleImage = `url(chrome://${config.addonRef}/content/icons/favicon@${Zotero.isWin ? '0.25x' : '0.5x'}.png)`;
document.querySelector("#zotero-items-toolbar")?.insertBefore(newNode, node?.nextElementSibling);
}

Expand Down

0 comments on commit 4c2dcd5

Please sign in to comment.