Mechanical rigidity of a shape-memory metal-organic framework increases by crystal downsizing.