Refactor widthStyle