@stellar-expert/ui-framework 1.14.5 → 1.14.7

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.
@@ -96,7 +96,7 @@ export const Dropdown = React.memo(function Dropdown({
96
96
  setAlignRight(shouldAlignRight)
97
97
  }
98
98
  }
99
- }, 200)
99
+ }, 100)
100
100
  }
101
101
  //show a dropdown after the initial render
102
102
  useEffect(() => {
@@ -77,7 +77,8 @@
77
77
  margin-left: -0.8em;
78
78
 
79
79
  &.align-right {
80
- right: -0.2em
80
+ right: -0.2em;
81
+ left: auto !important;
81
82
  }
82
83
 
83
84
  > ul {
@@ -5,7 +5,7 @@ import {Tooltip} from './tooltip'
5
5
  import './info-tooltip.scss'
6
6
 
7
7
  export const InfoTooltip = React.memo(function InfoTooltip({children, link, icon = 'icon-help', ...otherProps}) {
8
- return <Tooltip trigger={<i className={cn('trigger icon info-tooltip small', icon)} {...otherProps}/>} maxWidth="30em">
8
+ return <Tooltip trigger={<i className={cn('trigger icon info-tooltip text-small text-justify', icon)} {...otherProps}/>} maxWidth="30em">
9
9
  {children}
10
10
  {!!link && <a href={link} className="info-tooltip-link" target="_blank">Read more&hellip;</a>}
11
11
  </Tooltip>
@@ -56,8 +56,8 @@ function calculateTooltipPosition(target, node, desiredPlace, offset) {
56
56
  return {
57
57
  place,
58
58
  position: {
59
- top: getTipOffsetTop(place) + window.scrollY | 0,
60
- left: getTipOffsetLeft(place) + window.scrollX | 0
59
+ top: (getTipOffsetTop(place) + window.scrollY) | 0,
60
+ left: tipWidth >= screen.width ? 0 : ((getTipOffsetLeft(place) + window.scrollX) | 0)
61
61
  }
62
62
  }
63
63
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stellar-expert/ui-framework",
3
- "version": "1.14.5",
3
+ "version": "1.14.7",
4
4
  "description": "StellarExpert shared UI components library",
5
5
  "main": "index.js",
6
6
  "module": "./index.js",