Skip to content

Commit

Permalink
fix item icon image on firefox
Browse files Browse the repository at this point in the history
Co-authored-by: Argn0 <Argn0@users.noreply.github.com>
  • Loading branch information
builder-247 and Argn0 committed Feb 25, 2024
1 parent cbb7b53 commit cbf3afa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/ItemTooltip/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ const Header = styled.div`
#item-img {
display: inline-block;
height: 100%;
width: 100%;
border: 1px solid #080D15;
box-sizing: border-box;
}
Expand Down
3 changes: 2 additions & 1 deletion src/components/Visualizations/inflictorWithValue.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ display: inline-block;
object, img {
height: 18px;
width: 25px;
}
}
&.neutral {
Expand Down Expand Up @@ -224,7 +225,7 @@ class InflictorWithValue extends React.Component {
onMouseEnter={this.setShowTooltip}
>
{(!type || type === 'purchase' || type === 'backpack' || type === 'neutral') &&
<object data={image} height="27px" type="image/png">
<object data={image} height="27px" width="37px" type="image/png">
<img src="/assets/images/Dota2Logo.svg" alt="Dota 2 Logo" style={{ filter: 'grayscale(60%)', height: '27px' }} />
</object>}
{type === 'buff' &&
Expand Down

0 comments on commit cbf3afa

Please sign in to comment.