I don't mind the smell of onion or garlic (except on my breath--I don't want to offend anyone!).
I keep all my onions, garlic, potatoes and ginger on one of those cool, collapsible baskets that have been around forever. I had it under a bed in NJ because I ordered it but never used it, and nearly got rid of it, but when I moved up here, there was a hook in the pantry ready-made for it, and it also matched the color scheme! (Red). It works VERY well for me.
https://www.amazon.com/Fox-Run-Hangi...1050046&sr=8-4
If I have half an onion left over, I put it in a repurposed plastic or glass jar/container or ziploc bag.