Skip to content

Commit

Permalink
fix: #5223 some additional css tweaks (#5236)
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcvay authored Oct 13, 2021
1 parent c09ab99 commit 4990e57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { css } from '@linaria/core'
import { styled } from '@linaria/react'
import { isTablet } from '../../../../core/__styles__/media'
import { appointmentListWidthDesktop } from '../../../../core/__styles__/page-layout-variables'

// Modifiers
export const myLocationHasDestination = css``
Expand Down Expand Up @@ -63,21 +61,15 @@ export const DestinationLocationSection = styled.div`
export const MyLocationSectionResults = styled.div`
position: absolute;
top: 2rem;
width: calc(100% - 3rem);
left: 1.5rem;
width: 100%;
box-shadow: 0px 4px 9px rgba(0, 0, 0, 0.08);
`

export const MyLocationSectionResult = styled.div`
width: calc(100% + 3rem);
width: 100%;
padding: 0.5rem;
background-color: #fff;
cursor: pointer;
margin-left: -1.5rem;
${isTablet} {
width: ${appointmentListWidthDesktop};
}
`

export const DepartureIcon = styled.div`
Expand Down
5 changes: 1 addition & 4 deletions packages/geo-diary/src/utils/map-utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { ExtendedAppointmentModel } from '../types/global'
import { AppRouteInformation, AppState, AppTravelMode } from '../core/app-state'
import { logger } from '@reapit/utils-react'
import { DirectionsResult } from '../components/ui/map/types'

export type FetchDestinationInformation = {
Expand Down Expand Up @@ -54,9 +53,7 @@ export const getGeoCoords = (): Promise<Partial<AppState>> => {
currentLng: position.coords.longitude,
})
},
(error) => {
const err = new Error(error.message)
logger(err)
() => {
return resolve({})
},
)
Expand Down

0 comments on commit 4990e57

Please sign in to comment.