Skip to content

Commit

Permalink
fix: remove margins from SizedTable (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChitlangeSahas authored Aug 25, 2021
1 parent 9b66131 commit 229312d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion giraffe/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@influxdata/giraffe",
"version": "2.18.1",
"version": "2.18.2",
"main": "dist/index.js",
"module": "src/index.js",
"license": "MIT",
Expand Down
7 changes: 1 addition & 6 deletions giraffe/src/components/SizedTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const SizedTable: FunctionComponent<Props> = ({
}) => {
const env = usePlotEnv(userConfig)

const {margins, config} = env
const {config} = env
const {width, height} = config

config.showAxes = false
Expand All @@ -55,11 +55,6 @@ export const SizedTable: FunctionComponent<Props> = ({
<div
className="giraffe-inner-plot"
style={{
position: 'absolute',
top: `${margins.top}px`,
right: `${margins.right}px`,
bottom: `${margins.bottom}px`,
left: `${margins.left}px`,
cursor: `${userConfig.cursor || 'auto'}`,
}}
>
Expand Down

0 comments on commit 229312d

Please sign in to comment.