Fix flex layout for Safari compat.