adds truncation function for categories, styles list view

Signed-off-by: Levi Tan Ong <levi@byimplication.com>