Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
fix: scissors emoji not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
mariz-ov committed Nov 10, 2023
1 parent f6c8b26 commit 2edf885
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/src/hooks/useRenderGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ export function useRenderGrid() {

if (pixelText) {
ctx.textAlign = 'center'

/// "✂" seems to not have its own color and such so doing a quick fix by adding a fill-color to it
if (pixelText === '0x552b32373032') {
ctx.fillStyle = 'red'
}
ctx.font=`${(cellSize / 2)}px Serif`

let text = felt252ToString(pixelText)
Expand Down

0 comments on commit 2edf885

Please sign in to comment.