fix layout in pub page view. #5855