mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-15 10:10:50 -06:00
Merge pull request #697 from aboodman/margin
splore: add padding at right side of layout
This commit is contained in:
@@ -18,6 +18,7 @@ export default function Layout(props: Props) : React.Element {
|
||||
|
||||
const spaceX = 75;
|
||||
const spaceY = 20;
|
||||
const paddingRight = 250;
|
||||
let getX = d => d.y * spaceX;
|
||||
let getY = d => d.x * spaceY;
|
||||
let maxX = 0;
|
||||
@@ -84,7 +85,7 @@ export default function Layout(props: Props) : React.Element {
|
||||
}
|
||||
|
||||
return (
|
||||
<svg width={maxX + spaceX} height={maxY + spaceY}>
|
||||
<svg width={maxX + spaceX + paddingRight} height={maxY + spaceY}>
|
||||
<g transform={`translate(${spaceX}, ${translateY})`}>
|
||||
{children}
|
||||
</g>
|
||||
|
||||
Reference in New Issue
Block a user