fix logic for when to restrict container width to board width