Removed useless width: 100% was messing with the padding
Added condition to ensure a minimum width