Skip to content

Commit

Permalink
onboarding fix position of "pin extension" in arc browser (#1437)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-schrammel authored Mar 29, 2024
1 parent a72bd79 commit 6c26604
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/design-system/styles/core.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ const boxBaseProperties = defineProperties({
bottom: positionSpace,
cursor: cursorOpts,
display: ['none', 'flex', 'block', 'inline'],
flexDirection: ['row', 'column', 'column-reverse'],
flexDirection: ['row', 'column', 'column-reverse', 'row-reverse'],
flexWrap: ['wrap'],
flexBasis: ['0'],
flexGrow: ['0', '1'],
Expand Down
17 changes: 10 additions & 7 deletions src/entries/popup/pages/walletReady/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,20 @@ const PinToToolbar = () => {
position="fixed"
borderRadius="16px"
style={{
...(!isArc && {
borderTopLeftRadius: 0,
borderTopRightRadius: 0,
right: isBrave ? '144px' : '104px',
}),
...(isArc
? { top: '8px', left: '8px' }
: {
borderTopLeftRadius: 0,
borderTopRightRadius: 0,
right: isBrave ? '144px' : '104px',
top: '0',
}),
maxWidth: '152px',
top: isArc ? '95px' : '0',
}}
paddingHorizontal="12px"
paddingVertical="16px"
display="flex"
flexDirection={isArc ? 'row-reverse' : 'row'}
gap="12px"
background="surfacePrimaryElevated"
borderColor="buttonStrokeSecondary"
Expand All @@ -50,7 +53,7 @@ const PinToToolbar = () => {
{i18n.t('wallet_ready.pin_rainbow_to_your_toolbar')}
</Text>
<Symbol
symbol={isArc ? 'arrow.right' : 'arrow.up'}
symbol={isArc ? 'arrow.left' : 'arrow.up'}
color="purple"
size={14}
weight="bold"
Expand Down

0 comments on commit 6c26604

Please sign in to comment.