Fixing code overflow when browser width is small