Inflation from just a couple things like gas and wheat will largely be ignored IF other signs of inflation ease such as housing. There will also be a point where gas prices hit a point (which I think is very close) where demand materially drops. People will find other workarounds, carpool together, go out less, etc...
Luckily nowadays you don't have to be driving around all the time to entertain yourself or get goods delivered to your home.
Also, someone mentioned earlier, but when this whole Russia thing does end, the world is going to end up with a glut of excess oil supply. Price for oil will go down drastically.
And I've looked around and the supply chain worries from Ukraine that I was seeing when the whole conflict broke out were grossly exaggerated. Chip suppliers themselves have said they don't rely on materials from Ukraine.