Page MenuHomePhabricator

D8826.diff
No OneTemporary

D8826.diff

diff --git a/web/utils/tooltip-action-utils.js b/web/utils/tooltip-action-utils.js
--- a/web/utils/tooltip-action-utils.js
+++ b/web/utils/tooltip-action-utils.js
@@ -22,7 +22,7 @@
import {
type MessageTooltipAction,
findTooltipPosition,
- getMessageActionTooltipStyle,
+ getTooltipStyle,
calculateTooltipSize,
type TooltipSize,
type TooltipPosition,
@@ -341,7 +341,7 @@
return undefined;
}
- const tooltipPositionStyle = getMessageActionTooltipStyle({
+ const tooltipPositionStyle = getTooltipStyle({
tooltipPosition,
sourcePositionInfo: tooltipMessagePosition,
tooltipSize,
diff --git a/web/utils/tooltip-utils.js b/web/utils/tooltip-utils.js
--- a/web/utils/tooltip-utils.js
+++ b/web/utils/tooltip-utils.js
@@ -174,7 +174,7 @@
return defaultPosition;
}
-type GetMessageActionTooltipStyleParams = {
+type GetTooltipStyleParams = {
+sourcePositionInfo: PositionInfo,
+tooltipSize: TooltipSize,
+tooltipPosition: TooltipPosition,
@@ -182,11 +182,11 @@
// ESLint doesn't recognize that invariant always throws
// eslint-disable-next-line consistent-return
-function getMessageActionTooltipStyle({
+function getTooltipStyle({
sourcePositionInfo,
tooltipSize,
tooltipPosition,
-}: GetMessageActionTooltipStyleParams): TooltipPositionStyle {
+}: GetTooltipStyleParams): TooltipPositionStyle {
if (tooltipPosition === tooltipPositions.RIGHT_TOP) {
return {
anchorPoint: {
@@ -317,8 +317,4 @@
};
}
-export {
- findTooltipPosition,
- calculateTooltipSize,
- getMessageActionTooltipStyle,
-};
+export { findTooltipPosition, calculateTooltipSize, getTooltipStyle };

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 9:11 PM (14 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2586307
Default Alt Text
D8826.diff (1 KB)

Event Timeline