select with images

main
alexanderroese 2024-07-17 18:28:04 +02:00
parent 8261adf2d7
commit 33deb476ee
1 changed files with 11 additions and 10 deletions

View File

@ -602,17 +602,18 @@
if (isInputShxFont) {
customDropdownHtml += `
<button class="shx-custom-variant-picker-dropbtn">
<div style="display: flex; justify-content: space-between; align-items: center; pointer-events: none">
<span>font</span>
<div style="display: flex; align-items: center; gap: 8px">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#131213"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg>
<div class="shx-custom-variant-picker-dropdown field custom">
<button class="shx-custom-variant-picker-dropbtn">
<div style="display: flex; justify-content: space-between; align-items: center; pointer-events: none">
<span>font</span>
<div style="display: flex; align-items: center; gap: 8px">
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#131213"><path d="M480-344 240-584l56-56 184 184 184-184 56 56-240 240Z"/></svg>
</div>
</div>
</div>
</button>
</button>
<div class="shx-custom-variant-picker-dropdown-content">
<div class="shx-custom-variant-picker-dropdown-content">
`
}
@ -643,7 +644,7 @@
html += `</select></div>`;
if (isInputShxFont) {
customDropdownHtml += `</div>`
customDropdownHtml += `</div></div>`
html += customDropdownHtml
}