Skip to content

Commit

Permalink
fix(hedgehog-mode): Make Max crisp again (#25284)
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes authored Sep 30, 2024
1 parent 1e857f0 commit 0470d65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/lib/components/HedgehogBuddy/HedgehogBuddy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ export class HedgehogActor {
>
{this.mainAnimation ? (
<div
className="image-rendering-pixelated"
className="rendering-pixelated"
// eslint-disable-next-line react/forbid-dom-props
style={{
width: SPRITE_SIZE,
Expand All @@ -824,7 +824,7 @@ export class HedgehogActor {

{this.accessories().map((accessory, index) => (
<div
className={`absolute top-0 left-0 w-[${SPRITE_SIZE}px] h-[${SPRITE_SIZE}px] image-rendering-pixelated`}
className={`absolute top-0 left-0 w-[${SPRITE_SIZE}px] h-[${SPRITE_SIZE}px] rendering-pixelated`}
key={index}
// eslint-disable-next-line react/forbid-dom-props
style={{
Expand All @@ -838,7 +838,7 @@ export class HedgehogActor {
))}
{this.overlayAnimation ? (
<div
className={`absolute top-0 left-0 w-[${SPRITE_SIZE}px] h-[${SPRITE_SIZE}px] image-rendering-pixelated`}
className={`absolute top-0 left-0 w-[${SPRITE_SIZE}px] h-[${SPRITE_SIZE}px] rendering-pixelated`}
// eslint-disable-next-line react/forbid-dom-props
style={{
backgroundImage: `url(${spriteOverlayUrl(this.overlayAnimation.spriteInfo.img)})`,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/styles/utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@

// Extra utilties that Tailwind doesn't have built in
@layer utilities {
.image-pixelated {
.rendering-pixelated {
image-rendering: pixelated;
}
}

0 comments on commit 0470d65

Please sign in to comment.