dynamically adjust open-video-dialog layout depending on configuration