Make badge height and text side margin dynamic