I have a Menu with Material-UI, why is the whole screen width used? How can I limit to use only the text length needed space?
I tried to put div element around MenuList but it did not help.
class MainPage extends React.Component {
render() {
return (
<div>
<MenuList>
<MenuItem>Profile</MenuItem>
<MenuItem>My account</MenuItem>
<MenuItem>Logout</MenuItem>
</MenuList>