Skip to content

Commit

Permalink
Move scalebar inside map for positioning
Browse files Browse the repository at this point in the history
  • Loading branch information
dgboss committed Apr 2, 2024
1 parent b79780a commit d70fa64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web/src/features/fba/components/map/FBAMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,9 @@ const FBAMap = (props: FBAMapProps) => {
snowDescription={getSnowDateMessage()}
/>
</Box>
<ScalebarContainer ref={scaleRef} />
</Box>
</MapContext.Provider>
<ScalebarContainer ref={scaleRef} />
</ErrorBoundary>
)
}
Expand Down
3 changes: 2 additions & 1 deletion web/src/features/fba/components/map/ScaleBarContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const ScalebarContainer = forwardRef((_, ref) => {
position: 'absolute',
right: '10px',
bottom: '10px',
overflow: 'hidden'
overflow: 'hidden',
zIndex: 1
}}
>
<Box
Expand Down

0 comments on commit d70fa64

Please sign in to comment.