|
@@ -2,7 +2,7 @@ import { ZoomInIcon, ZoomOutIcon } from '@radix-ui/react-icons'
|
2
|
2
|
import { IconButton } from 'components/shared'
|
3
|
3
|
import state, { useSelector } from 'state'
|
4
|
4
|
import styled from 'styles'
|
5
|
|
-import { getCurrentCamera } from 'utils/utils'
|
|
5
|
+import { getCurrentCamera } from 'utils'
|
6
|
6
|
import Tooltip from '../tooltip'
|
7
|
7
|
|
8
|
8
|
const zoomIn = () => state.send('ZOOMED_IN')
|
|
@@ -34,7 +34,11 @@ function ZoomCounter() {
|
34
|
34
|
const zoom = useSelector((s) => getCurrentCamera(s.data).zoom)
|
35
|
35
|
|
36
|
36
|
return (
|
37
|
|
- <ZoomButton onClick={zoomToActual} onDoubleClick={zoomToFit}>
|
|
37
|
+ <ZoomButton
|
|
38
|
+ onClick={zoomToActual}
|
|
39
|
+ onDoubleClick={zoomToFit}
|
|
40
|
+ style={{ width: '44px' }}
|
|
41
|
+ >
|
38
|
42
|
{Math.round(zoom * 100)}%
|
39
|
43
|
</ZoomButton>
|
40
|
44
|
)
|
|
@@ -73,9 +77,6 @@ const Container = styled('div', {
|
73
|
77
|
bottom: 12,
|
74
|
78
|
flexDirection: 'row',
|
75
|
79
|
alignItems: 'center',
|
76
|
|
- [`& ${ZoomButton}`]: {
|
77
|
|
- width: 44,
|
78
|
|
- },
|
79
|
80
|
},
|
80
|
81
|
},
|
81
|
82
|
},
|