fixing preview tooltip when url is too long