From 2bcaa09a622f974a254297786660e481593b3614 Mon Sep 17 00:00:00 2001 From: Argn0 Date: Sun, 3 Feb 2019 18:13:57 +0100 Subject: [PATCH] fix no value --- src/components/Visualizations/inflictorWithValue.jsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/Visualizations/inflictorWithValue.jsx b/src/components/Visualizations/inflictorWithValue.jsx index f9863ec30d..b59ab7f98b 100644 --- a/src/components/Visualizations/inflictorWithValue.jsx +++ b/src/components/Visualizations/inflictorWithValue.jsx @@ -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; + } } `; @@ -230,7 +234,7 @@ class InflictorWithValue extends React.Component { } {type === 'backpack' &&
- {value} + {value}
} {tooltip &&