A platform for community discussion. Free, open, simple.
DEV: Clarify class when excerpt is present (#31427)
Jordan Vidrine0f567e4bd331
diff --git a/app/assets/javascripts/discourse/app/components/topic-list/item.gjs b/app/assets/javascripts/discourse/app/components/topic-list/item.gjsindex ea7b460521d..9aa99867ffa 100644--- a/app/assets/javascripts/discourse/app/components/topic-list/item.gjs+++ b/app/assets/javascripts/discourse/app/components/topic-list/item.gjs@@ -6,7 +6,7 @@ import { next } from "@ember/runloop";import { service } from "@ember/service";import { htmlSafe, isHTMLSafe } from "@ember/template";import { modifier } from "ember-modifier";-import { eq } from "truth-helpers";+import { and, eq } from "truth-helpers";import PluginOutlet from "discourse/components/plugin-outlet";import PostCountOrBadges from "discourse/components/topic-list/post-count-or-badges";import TopicExcerpt from "discourse/components/topic-list/topic-excerpt";@@ -229,6 +229,7 @@ export default class Item extends Component {(if (eq @topic @lastVisitedTopic) "last-visit")(if @topic.visited "visited")(if @topic.hasExcerpt "has-excerpt")+ (if (and this.expandPinned @topic.hasExcerpt) "excerpt-expanded")(if @topic.unseen "unseen-topic")(if @topic.unread_posts "unread-posts")(if @topic.liked "liked")diff --git a/app/assets/stylesheets/common/base/_topic-list.scss b/app/assets/stylesheets/common/base/_topic-list.scssindex 28595a57724..ffbb3347437 100644--- a/app/assets/stylesheets/common/base/_topic-list.scss+++ b/app/assets/stylesheets/common/base/_topic-list.scss@@ -210,7 +210,7 @@}> .topic-list-body > .topic-list-item {- &.has-excerpt .star {+ &.excerpt-expanded .star {vertical-align: top;margin-top: 2px;}