Skip to content

Commit 1dff4da

Browse files
author
Hector Arce De Las Heras
committed
Improve icon posiiton on Tooltip Component
1 parent 8d35d92 commit 1dff4da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/tooltip/hooks/useTooltip.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,9 @@ export const useTooltip = <V>({
148148
top: arrowY !== null ? `${arrowY}px` : '',
149149
right: '',
150150
bottom: '',
151-
[staticSide as string]: `calc(${
152-
styles.tooltipExternalContainer?.[DeviceBreakpointsType.DESKTOP]?.padding ?? 0
153-
} - ${styles.arrowContainer?.arrow_position ?? '0px'} / 2)`,
151+
[staticSide as string]: `calc(${styles.tooltipExternalContainer?.[DeviceBreakpointsType.DESKTOP]?.padding ?? 0} - ${
152+
styles.arrowContainer?.arrow_position ?? '0px'
153+
} / 2)`,
154154
};
155155

156156
if (arrowElement && (arrowElement as HTMLElement).style) {

0 commit comments

Comments
 (0)