You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/client/src/services/utils.ts
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -869,6 +869,18 @@ export function getErrorMessage(e: unknown) {
869
869
}
870
870
}
871
871
872
+
/**
873
+
* Handles left or right placement of e.g. tooltips in case of right-to-left languages. If the current language is a RTL one, then left and right are swapped. Other directions are unaffected.
874
+
* @param placement a string optionally containing a "left" or "right" value.
875
+
* @returns a left/right value swapped if needed, or the same as input otherwise.
0 commit comments