fix detail view gets cut off if window too narrow