Fix splitMenuButton dropdown icon

This commit is contained in:
windingwind 2024-05-14 16:56:40 +08:00 committed by Dan Stillman
parent bc47ee46c8
commit f1d8a1c289

View file

@ -113,8 +113,6 @@
} }
get contentFragment() { get contentFragment() {
// Zotero.hiDPI[Suffix] may not have been initialized yet, so calculate it ourselves
let hiDPISuffix = window.devicePixelRatio > 1 ? '@2x' : '';
let frag = document.importNode( let frag = document.importNode(
MozXULElement.parseXULToFragment(` MozXULElement.parseXULToFragment(`
<html:div anonid="button-image-and-text-box"> <html:div anonid="button-image-and-text-box">
@ -123,7 +121,7 @@
</html:div> </html:div>
<html:div anonid="dropmarker-separator"/> <html:div anonid="dropmarker-separator"/>
<html:div anonid="dropmarker-box"> <html:div anonid="dropmarker-box">
<image src="chrome://zotero/skin/searchbar-dropmarker${hiDPISuffix}.png" width="7" height="4" class="split-menu-button-dropmarker"/> <image src="chrome://zotero/skin/8/universal/chevron-8.svg" class="split-menu-button-dropmarker"/>
</html:div> </html:div>
`), `),
true true