UX: More logic for title columns (#87)
This commit is contained in:
@@ -65,11 +65,12 @@ export default {
|
||||
api.registerValueTransformer(
|
||||
"topic-list-item-class",
|
||||
({ value: classes, context }) => {
|
||||
if (context.topic.pinned || context.topic.pinned_globally) {
|
||||
classes.push("--pinned");
|
||||
}
|
||||
if (context.topic.is_hot) {
|
||||
classes.push("--hot");
|
||||
if (
|
||||
context.topic.is_hot ||
|
||||
context.topic.pinned ||
|
||||
context.topic.pinned_globally
|
||||
) {
|
||||
classes.push("--has-status-card");
|
||||
}
|
||||
return classes;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user