display gamepad opacity

This commit is contained in:
waltem01 2023-11-30 11:45:44 +01:00
parent c57bb60fcb
commit e54dd5cfa3

View File

@ -584,7 +584,9 @@
<td
data-x={cell.xIndex}
style="padding: {padding}rem; background-color: #{getContrastColor(cell.color)}"
class="opacity-0 hover:opacity-50"
class="{gamepad && gameCoords.x === cell.xIndex && gameCoords.y === cell.yIndex
? 'opacity-50'
: 'opacity-0'} hover:opacity-50"
on:mousemove={setMousePixel}
/>
{/each}