Skip to content

Commit

Permalink
Merge pull request #2623 from Changh341/issue-2598-problematic-svg
Browse files Browse the repository at this point in the history
Fix: Problematic SVG on Firefox [#2623]
  • Loading branch information
DreadKnight authored Sep 22, 2024
2 parents 5861a0c + 201c2b5 commit 8a2d9de
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
Binary file removed assets/autoload/phaser/interface/skip.png
Binary file not shown.
1 change: 1 addition & 0 deletions assets/autoload/phaser/interface/skip.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion assets/icons/skip.svg

This file was deleted.

2 changes: 1 addition & 1 deletion src/creature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2087,7 +2087,7 @@ class CreatureSprite {
// Add "Skip turn" icon
const skipTurnIcon = this._phaser.add.sprite(0, 50, 'skip');
skipTurnIcon.anchor.setTo(0.5, 0.7); // Give a bit more vertical space
skipTurnIcon.setScaleMinMax(0.63, 0.63, 0.63, 0.63);
skipTurnIcon.setScaleMinMax(0.15, 0.15, 0.15, 0.15);
skipTurnIcon.alpha = 0;
skipTurnIcon.data.hintType = hintType;
skipTurnIcon.data.tweenAlpha = null;
Expand Down
16 changes: 8 additions & 8 deletions src/style/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@
}

.button#skip {
background-image: url('~assets/icons/skip.svg');
background-image: url('~assets/autoload/phaser/interface/skip.svg');
}

.button#delay {
Expand Down Expand Up @@ -2067,10 +2067,10 @@ input {

#brandlogo {
height: 100vh;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
width: 100vw;
display: flex;
align-items: center;
justify-content: center;
&.hide {
display: none;
}
Expand All @@ -2097,16 +2097,16 @@ input {
background-position-y: top;
background-size: 50%;
width: 50%;
height:250px;
height: 250px;
max-width: 1000px;
margin-top: 12%;

@media (max-aspect-ratio: 16/9) {
margin-top:10%;
margin-top: 10%;
}

@media (orientation: portrait) {
margin-top:5%;
margin-top: 5%;
}

@media screen and (min-height: 300px) {
Expand Down

0 comments on commit 8a2d9de

Please sign in to comment.