1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
metamask-extension/ui/app/pages/permissions-connect
Mark Stacey ad5e16cfa7
Fix site icon size (#8814)
A new `SiteIcon` component has been created for showing icons
representing web3 sites. The icon has a border and background, and it
has a fallback in case no icon is given. This new component accepts a
`size` prop that controls the size of the icon.

The old `IconWithFallback` component had a hard-coded size in the
SCSS styles for the icon, which was being overridden in a few places.
It was difficult to customize, and overly complicated.

The old `IconWithFallback` component is still used, but it's now
simpler. It only handles rendering the underlying `img` for the icon,
or the fallback letter if no image is given.

A separate `IconBorder` component has been created for the border and
white background used. It's solely used by `SiteIcon` for now, but I
intend to use it elsewhere as well, where this same pattern of a white
background is embedded.
2020-06-15 19:24:23 -03:00
..
choose-account Fix connect flow account list height (#8798) 2020-06-12 18:22:45 -03:00
redirect Fix site icon size (#8814) 2020-06-15 19:24:23 -03:00
index.js
index.scss
permissions-connect.component.js fixup! fix redirect alignment and css class names 2020-06-12 09:09:42 -07:00
permissions-connect.container.js remove home page flicker on notification close 2020-06-10 22:09:04 -07:00