Skip to content

Commit 72a4a6e

Browse files
committed
Add 2020 field
1 parent ffe1096 commit 72a4a6e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: visualizer/src/assets/2020field.png

1.72 MB
Loading

Diff for: visualizer/src/components/Field.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React from 'react';
22
import styled from 'styled-components';
33
import { fieldScreenXPixels, fieldScreenYPixels, screenToRealPose } from '../coordinates/field';
4-
import fieldImg from '../assets/field.jpg';
4+
import fieldImg from '../assets/2020field.jpg';
55
import { useSpring, animated } from 'react-spring';
66

77
// Outter element that wraps the inner field, room for the human stations and the like
@@ -105,8 +105,9 @@ const FloatingTooltip = styled.div`
105105
border: 3px solid black;
106106
`;
107107

108+
// margin says how inset from the image does it need to be
108109
const StyledFieldInner = styled.div`
109-
margin: 23px;
110+
margin: 23px 42px 23px 39px;
110111
position: relative;
111112
background-color: #6fd42245;
112113
width: ${fieldScreenXPixels}px;

0 commit comments

Comments
 (0)