Specify width on icons & comment
This commit is contained in:
parent
304e5b997a
commit
b80b08f04f
|
@ -179,7 +179,9 @@ export default class NetworkDropdown extends React.Component {
|
||||||
name = network;
|
name = network;
|
||||||
}
|
}
|
||||||
if (this.props.config.networks[network].icon) {
|
if (this.props.config.networks[network].icon) {
|
||||||
icon = <img src={this.props.config.networks[network].icon} />;
|
// omit height here so if people define a non-square logo in the config, it
|
||||||
|
// will keep the aspect when it scales
|
||||||
|
icon = <img src={this.props.config.networks[network].icon} width="16" />;
|
||||||
} else {
|
} else {
|
||||||
icon = <img src={iconPath} width="16" height="16" />;
|
icon = <img src={iconPath} width="16" height="16" />;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue