Task preview fix

Styling needs fixing.
seems like the code in task-preview - what about making this a directive?