updates conditional top padding