How can i lock my gradient on scaled meshes ?

Ok, so this isn’t a material problem, you just don’t want the top of the cube to get too big?