Fixed style of modal in preview.

fixes #1179