Skip to content

Commit

Permalink
fix no value
Browse files Browse the repository at this point in the history
  • Loading branch information
Argn0 committed Feb 3, 2019
1 parent cda6805 commit 2bcaa09
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/Visualizations/inflictorWithValue.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,19 @@ const StyledDiv = styled.div`
.backpackOverlay {
display: inline-block;
position: relative;
bottom: 5px;
font-size: 10px;
background-color: rgba(0, 0, 0, 0.5);
line-height: 18px;
height: 18px;
min-width: 20px;
padding-left: 3px;
padding-right: 3px;
border-bottom-right-radius: 4px;
border-top-right-radius: 4px;
overflow: hidden;
span {
line-height: 18px;
}
}
`;

Expand Down Expand Up @@ -230,7 +234,7 @@ class InflictorWithValue extends React.Component {
}
{type === 'backpack' &&
<div className="backpackOverlay">
{value}
<span>{value}</span>
</div>
}
{tooltip &&
Expand Down

0 comments on commit 2bcaa09

Please sign in to comment.