Skip to content

Commit

Permalink
Add some UI adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
david0xd committed Feb 13, 2025
1 parent 83a0e29 commit cf87783
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 9 deletions.
30 changes: 21 additions & 9 deletions ui/pages/permissions-connect/connect-page/connect-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,12 +200,24 @@ export const ConnectPage: React.FC<ConnectPageProps> = ({
marginBottom={2}
>
{targetSubjectMetadata.iconUrl ? (
<AvatarFavicon
backgroundColor={BackgroundColor.backgroundAlternative}
size={AvatarFaviconSize.Lg}
src={targetSubjectMetadata.iconUrl}
name={title}
/>
<>
<Box style={{ filter: 'blur(16px)', position: 'absolute' }}>
<AvatarFavicon
backgroundColor={BackgroundColor.backgroundAlternative}
size={AvatarFaviconSize.Xl}
src={targetSubjectMetadata.iconUrl}
name={title}
style={{ filter: 'brightness(1.2)' }}
/>
</Box>
<AvatarFavicon
backgroundColor={BackgroundColor.backgroundAlternative}
size={AvatarFaviconSize.Lg}
src={targetSubjectMetadata.iconUrl}
name={title}
style={{ zIndex: 1, background: 'transparent' }}
/>
</>
) : (
<AvatarBase
size={AvatarBaseSize.Lg}
Expand Down Expand Up @@ -240,7 +252,7 @@ export const ConnectPage: React.FC<ConnectPageProps> = ({
}}
>
<Tab
name="Accounts"
name={t('accounts')}
tabKey="accounts"
width={BlockSize.Full}
data-testid="accounts-tab"
Expand All @@ -249,7 +261,7 @@ export const ConnectPage: React.FC<ConnectPageProps> = ({
<Box
backgroundColor={BackgroundColor.backgroundDefault}
borderRadius={BorderRadius.XL}
style={{ overflow: 'auto', maxHeight: '240px' }}
style={{ overflow: 'auto', maxHeight: '290px' }}
>
{selectedAccounts.map((account) => (
<AccountListItem
Expand Down Expand Up @@ -282,7 +294,7 @@ export const ConnectPage: React.FC<ConnectPageProps> = ({
</Box>
</Tab>
<Tab
name="Permissions"
name={t('permissions')}
tabKey="permissions"
width={BlockSize.Full}
data-testid="permissions-tab"
Expand Down
4 changes: 4 additions & 0 deletions ui/pages/permissions-connect/connect-page/index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
@use "design-system";

.connect-page {
.multichain-page-content {
overflow: hidden;
}

.multichain-account-list-item {
&:hover,
&:focus-within {
Expand Down

0 comments on commit cf87783

Please sign in to comment.