Update DetailView.js

Add Boolean logic for spacing.