Skip to content

Commit

Permalink
Merge pull request #3157 from builder-247/item-img-fix
Browse files Browse the repository at this point in the history
Fix item icon image on firefox
  • Loading branch information
howardchung committed Mar 3, 2024
2 parents cbb7b53 + cbf3afa commit 2fcf189
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 2fcf189

Please sign in to comment.