-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: change active account on dapp login #3454
base: develop
Are you sure you want to change the base?
Conversation
default: | ||
return 0; | ||
} | ||
}); | ||
const tokenSymbol = computed( | ||
() => ProtocolAdapterFactory.getAdapter(account!.protocol).coinSymbol, | ||
() => ProtocolAdapterFactory.getAdapter(account!.value.protocol).coinSymbol, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
() => ProtocolAdapterFactory.getAdapter(account!.value.protocol).coinSymbol, | |
() => ProtocolAdapterFactory.getAdapter(account.value.protocol).coinSymbol, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the unnecessary !
src/popup/components/Truncate.vue
Outdated
@@ -3,6 +3,9 @@ | |||
class="truncate" | |||
:class="{ right }" | |||
> | |||
<span class="center-vertically"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why have you decided to add it inside Truncate
component and not just part of AccountInfo
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved it to AccountInfo
as it's not necessary in Truncate
@@ -340,7 +339,7 @@ export default defineComponent({ | |||
position: relative; | |||
margin: 0 auto; | |||
width: 100%; | |||
height: 100%; | |||
height: 100vh; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for that change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was an issue when the extension opened as a popup (i.e. when logging in through a dapp or when signing transactions). The content of the popup that opened had a wrong height, which caused the buttons at the bottom to be cut. When that popup was resized, they disappeared altogether. The 100vh
in combination with removing the justify-content: center;
fixed this behavior. It did not seem to affect anything else according to my tests, but should be double checked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
4f9a71f
to
6f8a1e3
Compare
1 similar comment
@@ -137,6 +121,7 @@ export default defineComponent({ | |||
showBookmarked, | |||
setAccountSelectType, | |||
} = useAccountSelector(); | |||
const { getAccountIcon } = useAccounts(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getAccountIcon
is not used in this component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
e1a50bf
to
3324b06
Compare
1 similar comment
3324b06
to
f408531
Compare
f408531
to
04dbacd
Compare
LGTM |
closes: #3449
also fixes a UI issue on wallet connect popup's dimensions