@rango-dev/widget-embedded 0.21.1-next.6 → 0.21.1-next.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rango-dev/widget-embedded",
3
- "version": "0.21.1-next.6",
3
+ "version": "0.21.1-next.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "source": "./src/index.ts",
@@ -25,7 +25,7 @@
25
25
  "@rango-dev/queue-manager-core": "^0.25.0",
26
26
  "@rango-dev/queue-manager-rango-preset": "^0.26.0",
27
27
  "@rango-dev/queue-manager-react": "^0.25.0",
28
- "@rango-dev/ui": "^0.27.1-next.4",
28
+ "@rango-dev/ui": "^0.27.1-next.5",
29
29
  "@rango-dev/wallets-react": "^0.12.0",
30
30
  "@rango-dev/wallets-shared": "^0.26.0",
31
31
  "bignumber.js": "^9.1.1",
@@ -47,4 +47,4 @@
47
47
  "publishConfig": {
48
48
  "access": "public"
49
49
  }
50
- }
50
+ }
@@ -1,4 +1,3 @@
1
- /* eslint-disable @typescript-eslint/no-magic-numbers */
2
1
  import type { PropTypes } from './WalletList.type';
3
2
  import type { Wallet } from '../../types';
4
3
  import type { WalletInfo } from '@rango-dev/ui';
@@ -42,6 +41,7 @@ import {
42
41
  WalletImageContainer,
43
42
  } from './WalletList.styles';
44
43
 
44
+ const ACCOUNT_ADDRESS_MAX_CHARACTERS = 7;
45
45
  export function WalletList(props: PropTypes) {
46
46
  const { chain, isSelected, selectWallet, limit, onShowMore } = props;
47
47
  const { config } = useAppStore();
@@ -147,7 +147,9 @@ export function WalletList(props: PropTypes) {
147
147
  walletType: wallet.type,
148
148
  chain,
149
149
  });
150
- const conciseAddress = address ? getConciseAddress(address) : '';
150
+ const conciseAddress = address
151
+ ? getConciseAddress(address, ACCOUNT_ADDRESS_MAX_CHARACTERS)
152
+ : '';
151
153
 
152
154
  const experimentalChain = isExperimentalChain(blockchains(), chain);
153
155
 
@@ -39,7 +39,8 @@ export function HomeButtons(props: HomeButtonsPropTypes) {
39
39
 
40
40
  {!isNotificationsHidden && (
41
41
  <Popover
42
- align="center"
42
+ align="end"
43
+ alignOffset={-88}
43
44
  collisionPadding={{ right: 20, left: 20 }}
44
45
  container={getContainer()}
45
46
  content={<NotificationContent />}>
@@ -3,6 +3,7 @@ import { styled } from '@rango-dev/ui';
3
3
  export const Container = styled('div', {
4
4
  padding: '$10',
5
5
  width: '350px',
6
+ maxWidth: '90vw',
6
7
  minHeight: '150px',
7
8
  });
8
9
 
@@ -190,7 +190,7 @@ export function Quote(props: QuoteProps) {
190
190
  title={
191
191
  error?.type === QuoteErrorType.BRIDGE_LIMIT
192
192
  ? error?.recommendation
193
- : i18n.t('Slippage Error:')
193
+ : i18n.t(`Slippage ${stepHasError ? 'Error' : 'Warning'}:`)
194
194
  }
195
195
  footer={
196
196
  <FooterAlert>