Add crm-case-activity-form-block classes on the table row (templates/CRM/ActivityForm/Activity.tpl already has these).