Skip to content

Commit

Permalink
fix: show as many node links as height allows (#238)
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin Rataj <[email protected]>
  • Loading branch information
jessicaschilling and lidel authored Jun 3, 2020
1 parent 3a6b14f commit 06612e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"main": "dist/index.js",
"module": "dist/index.js",
"scripts": {
"build": "cross-env NODE_ENV=production babel src -d dist --copy-files --ignore '**/*.test.js'",
"build": "cross-env NODE_ENV=production babel --quiet src -d dist --copy-files --ignore '**/*.test.js'",
"clean": "rm -rf dist",
"lint": "standard",
"prepare": "npm run build",
Expand Down
2 changes: 1 addition & 1 deletion src/components/object-info/LinksTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class LinksTable extends React.Component {
const headerClassName = 'mid-gray fw2 tracked silver'
const rowHeight = 29
const headerHeight = 32
const tableHeight = Math.min(370, (links.length * rowHeight) + headerHeight)
const tableHeight = Math.max(370, (Math.min(window.innerHeight - 500, links.length * rowHeight + headerHeight)))
return (
<div>
<AutoSizer disableHeight>
Expand Down

0 comments on commit 06612e2

Please sign in to comment.