Skip to content

Commit

Permalink
fix: force app icon 100% size in connect modal, fixes leather-io#455
Browse files Browse the repository at this point in the history
  • Loading branch information
hstove committed Jul 24, 2020
1 parent 8d13cf3 commit 4f69f75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/connect/src/react/components/app-icon/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface AppIconProps {

const AppIcon: React.FC<AppIconProps & BoxProps> = ({ src, alt, ...rest }) => (
<Box borderRadius="6px" overflow="hidden" size="loose" {...rest}>
<Image src={src} alt={alt} title={alt} loading="lazy" />
<Image src={src} alt={alt} title={alt} loading="lazy" width="100%" maxHeight="100%" />
</Box>
);

Expand Down
6 changes: 4 additions & 2 deletions packages/connect/src/react/components/image/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import { BoxProps, Box } from '@blockstack/ui';

interface ImageProps {
interface ImageProps extends BoxProps {
src?: string;
alt?: string;
title?: string;
Expand All @@ -9,7 +10,8 @@ interface ImageProps {

const Image: React.FC<ImageProps> = ({ loading: _loading, ...props }) => {
return (
<img
<Box
as="img"
style={{
maxWidth: '100%',
display: 'block',
Expand Down

0 comments on commit 4f69f75

Please sign in to comment.