There're already even, odd class in activity rows, is that possible to add a 'first' css class to the top row and a 'last' to the last?

thanks,
bb

CommentFileSizeAuthor
Screenshot at 2012-01-17 14:21:37.png102.4 KBrogical

Comments

rogical’s picture

Title: Add first, last css class to activity rows » Theming activity -- Add first, last css class to activity rows
Category: support » feature
Stalski’s picture

Status: Active » Closed (won't fix)

I was trying to implement this as it seemed easy at first. But actually when polling newer messages or fetching older messages, it's a bit hard and weird having to change that first / last behavior.
That said, it occurred to me that it would be much easier in javascript only.

However, I am not much in favor of the first - last classes as they are not functional in the case of heartbeat.

You could however do it yourself on a drupal.behavior hook (tons of examples available). In short: Lookup a stream, calculate first and last and remove/add classes accordingly.
I am sorry to disappoint you. I might not have given it enough thought, but that's how I feel about it right now.

rogical’s picture

That's OK, as I also think about it for a time, when the messages are keep polling, it's not able to do that.

Thanks however!