@meduza/ui-kit-2 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.1.16",
2
+ "version": "0.1.17",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
@@ -126,7 +126,9 @@ export const DotsOnImage: React.FC<DotsOnImageProps> = ({
126
126
  style={{
127
127
  top: `${dot.position.y}%`,
128
128
  left: `${dot.position.x}%`,
129
- transform: `scale(${ratio}) translate(-50%, -50%)`
129
+ transform: `scale(${ratio}) translate(-${50 / ratio}%, -${
130
+ 50 / ratio
131
+ }%)`
130
132
  }}
131
133
  >
132
134
  <button
@@ -136,7 +138,7 @@ export const DotsOnImage: React.FC<DotsOnImageProps> = ({
136
138
  ])}
137
139
  type="button"
138
140
  style={{
139
- backgroundColor: dot.icon.color,
141
+ backgroundColor: dot.icon.color
140
142
  }}
141
143
  onClick={(): void => handleDotClick(dot)}
142
144
  >