Hello,
I have found that in the latest update of Aurelia, the way the categories are marked with "-stickymsg" class is different on the "Recent Topics" and "My Topics" pages.
Code:
<tbody class="topic-list">
<tr class="category">
When there's a class set for the category (e.g. "-myclass"), in the recent topics, the category class for the row and it's a sticky topic, the class for the tr shows as:
category-myclass (with no "-stickymsg")
in "My Topics" however, it shows as
category-myclass-stickymsg-stickymsg (with 2 "-stickymsg")
One way to solve this is by modifying the page /components/com_kunena/template/aurelia/layouts/topic/row/default.php around line 33 from
Code:
if ($this->topic->ordering) {
$txt = $this->topic->getCategory()->class_sfx ? $txt . '' : $txt . '-stickymsg';
}
to
Code:
if ($this->topic->ordering) {
$txt .= ' ' . 'category-stickymsg';
}
And then duplicating that on /components/com_kunena/template/aurelia/layouts/topic/row/user.php (change line 64 also)
This is just one way, as I'm not to decide how to list the classes. In this manner, the classes for the rows show as:
category
category category-stickymsg
or
category-myclass
category-myclass category-stickymsg
I see there's the class use of "category" or "category-stickymsg" for whether is a sticky class or not. This becomes an issue when adding other classes like "deleted". It would be much simpler to add the sticky class just separately and use "category.stickymsg" in the css rather than "category-stickymsg" so that the order doesn't affect the class.
Personally, I start my category classes with a space to simplify my css code, but I see the value of having "category-myclass" since it can nullify previous css lines we don't want to use.
Thank you,
Tomás