Skip to content

Commit

Permalink
fixed bug due to unwanted css
Browse files Browse the repository at this point in the history
  • Loading branch information
henriktron committed Mar 7, 2023
1 parent d9290f4 commit 4ddf20e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Visualization2.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,8 @@ const Visualization2 = ({
textOverflow: "ellipsis",
whiteSpace: "nowrap",
color: layout === "bars" ? colors.text : colors.textTree,
padding: layout === "bars" ? 0 : "0.25rem"
padding: layout === "bars" ? 0 : "0.25rem",
lineHeight: "initial"
}}
>

Expand All @@ -322,7 +323,7 @@ const Visualization2 = ({
? moreLabel : title.replace(/"/g, ""))
: null}
<span style={{float: "right", marginRight: "-20px"}}>{((subItem.data.data.size).toString().replace(/\B(?=(\d{3})+(?!\d))/g, " ")) } personer </span>
<p style={{textAlign: "right", marginRight: "-10px", lineHeight: "20px"}}>{Math.round((subItem.data.data.size / subItem.data.data.total)*100)} %</p>
<p style={{textAlign: "right", marginRight: "-10px", lineHeight: "20px", marginTop: 'revert'}}>{Math.round((subItem.data.data.size / subItem.data.data.total)*100)} %</p>
</motion.div>
</foreignObject>}
</g>
Expand Down

0 comments on commit 4ddf20e

Please sign in to comment.