I am currently stuck on a project involving React and Material UI, trying to figure out how to widen the width of an icon from Material UI without affecting its height.
There is an icon wrapped inside a https://i.sstatic.net/6WASt.png tag, originally with margin left set to auto for right alignment:
The goal is to have the hamburger 3-lines icon stretch across the top bar while maintaining its original height. Adjusting the width to 100 causes the icon to be centered within the element, losing the left margin. However, the actual stretching of the icon does not occur:
https://i.sstatic.net/kr6Xm.png
I have discovered that changing the size only works when increasing both width and height. Setting width to 100% and height to 32rem results in:
https://i.sstatic.net/sNCin.png
Although the three lines span the bar, the icon becomes "bigger" in height. Is there a way to stretch the icon without altering its height? Any advice would be greatly appreciated. Thank you!