It is well-known that every metric space $(X,d)$ is homeomorphic to a bounded metric space $(X,\bar{d})$ where: $$ \bar{d}:X^2\ni (x_1,x_2)\mapsto \frac{d(x_1,x_2)}{1+d(x_1,x_2)} \in [0,1]; $$ (see this post for instance). Is the homeomorphism $$ h:(X,d)\ni x \mapsto x \in (X,\bar{d}), $$ ever uniformly continuous? and, if so, how does its modulus of continuity relate to $X$'s diameter?
I anticipate that the map is only uniformly continuous if the diameter of $(X,d)$; by which I mean, $\operatorname{diam}(X,d):=\sup_{x_1,x_2\in X}\, d(x_1,x_2)$), is finite.