GTNPORTAL-3177: fix the portal edit handler when on small screened devices