Fix styling bug for detail pages