Set input/menu widgets to have a max-width expanding to 100% rather than hard-coded

Bug: 72112
Change-Id: Ibce1c52bb5c78ddbc5c7b2c60ec9ac3fadb3bcbf