DAR-2366, fix small screen modal conditions