diff --git a/app/assets/javascripts/discourse/app/components/text-overflow.js b/app/assets/javascripts/discourse/app/components/text-overflow.js deleted file mode 100644 index 201172f1ef..0000000000 --- a/app/assets/javascripts/discourse/app/components/text-overflow.js +++ /dev/null @@ -1,27 +0,0 @@ -import { next } from "@ember/runloop"; -import { htmlSafe } from "@ember/template"; -import Component from "@ember/component"; - -export default Component.extend({ - text: null, - - init() { - this._super(...arguments); - - this.set("text", htmlSafe(this.text)); - }, - - didInsertElement() { - this._super(...arguments); - - next(null, () => { - const $this = $(this.element); - - if ($this) { - $this.find("br").replaceWith(" "); - $this.find("hr").remove(); - $this.ellipsis(); - } - }); - } -}); diff --git a/app/assets/javascripts/discourse/app/templates/components/categories-boxes-topic.hbs b/app/assets/javascripts/discourse/app/templates/components/categories-boxes-topic.hbs index 63277909ec..988069494c 100644 --- a/app/assets/javascripts/discourse/app/templates/components/categories-boxes-topic.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/categories-boxes-topic.hbs @@ -1,5 +1,5 @@ {{d-icon topicStatusIcon}} - {{text-overflow class="overflow" text=topic.fancyTitle}} + {{html-safe topic.fancyTitle}} diff --git a/app/assets/javascripts/discourse/app/templates/components/categories-boxes.hbs b/app/assets/javascripts/discourse/app/templates/components/categories-boxes.hbs index 1b224b7c58..4ab2dcddb0 100644 --- a/app/assets/javascripts/discourse/app/templates/components/categories-boxes.hbs +++ b/app/assets/javascripts/discourse/app/templates/components/categories-boxes.hbs @@ -27,7 +27,7 @@ {{#unless c.isMuted}}