fix(view) add margin only when view text documents