Skip to content

Commit

Permalink
sizing logic reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
se7en-illa committed Oct 4, 2024
1 parent 932579f commit 6f01413
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/gestalt/src/Avatar/InternalAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,21 @@ function InternalAvatar(props: Props) {
webExperimentName: 'web_gestalt_visualRefresh',
mwebExperimentName: 'web_gestalt_visualRefresh',
});
const defaultSize = isInVRExperiment ? 'md' : 'fit';
const {
accessibilityLabel,
color,
isHovered,
isPressed,
name,
outline,
size = defaultSize,
size = 'fit',
src,
verified,
} = props;
const [isImageLoaded, setIsImageLoaded] = useState(true);
const handleImageError = () => setIsImageLoaded(false);
const width = size === 'fit' ? '100%' : sizes[size] || 48;
const height = size === 'fit' ? '' : sizes[size] || 48;
const width = size === 'fit' ? '100%' : sizes[size];
const height = size === 'fit' ? '' : sizes[size];

return (
<div
Expand Down

0 comments on commit 6f01413

Please sign in to comment.