Hello,
I am attempting to create a vertical menu with a custom style for the menu items. I have the following code with the output attached. As you can see the menuitems are not aligned. Any thoughts?
const contentRender = (props: any) => {
return (
<div style={{margin:"0px 0px 5px 0px",
padding: '0px 0pc 0px 0px !important',
fontSize:"xx-small",
textAlign:"center",
justifyContent:"center"}}>
<SvgIcon icon={props.item.svgIcon} size={"large"}/>
<br/>
<span>{props.item.text}</span>
</div>
);
};
<Menu vertical={true} itemRender={contentRender}>
<MenuItem svgIcon={allIcon} text={"All"} />
<MenuItem svgIcon={userIcon} text={"Me"} />
<MenuItem svgIcon={folderIcon} text={"None"} />
<MenuItem text={"Workflows"} svgIcon={aggregateFieldsIcon}/>
<MenuItem text={"RFIs"} svgIcon={stickyNoteIcon}/>
<MenuItem text={"Coordinat.."} svgIcon={clockIcon}/>
<MenuItem text={"Observat.."} svgIcon={binocularsIcon}/>
<MenuItem text={"Inspection"} svgIcon={clipboardIcon}/>
<MenuItem text={"Punch"} svgIcon={pinIcon}/>
<MenuItem text={"Incident"} svgIcon={groupCollectionIcon}/>
<MenuItem text={"Correspnd.."} svgIcon={commentIcon}/>
</Menu>