Query on Dimension
How does Material-UI determine the width and height of elements within the <Avatar/>
component?
Specific Scenario
My specific issue revolves around the <AccountCircle/>
icon, which you can find as an example here: account circle, not adequately occupying the space as its parent.
My aim is to have an avatar size of 80x80, but due to the numerous random classes with varying margins and paddings added by Material-UI, the result is not as expected. The generated code contains an <svg>
with a <path>
element that measures around 66.67px.
const avatarImageStyle = {
width: 80,
height: 80,
};
JSX
<AccountCircle style={Object.assign({}, avatarImageStyle, {color: 'grey' })} />