The topic list doesn't need a category column

[Edit: Corrected the CSS to work on all categories.]
[Edit2: Needed to add “display: block;” to the container after a recent Discourse change.]

I haven’t tested this much, as I only just did it, but I made this CSS change which others may find useful, if they dislike the new topic list layout.

Before:

After:

CSS code:

.topic-list-item .link-bottom-line {
	float: right;
	margin-top: 0.2em;
	display: block;
}

.topic-list-item .link-bottom-line .badge-wrapper.bullet {
	float: right;
	margin-left: 1em;
}

.topic-list-item .link-bottom-line .discourse-tags {
	float: right;
	margin-left: 1em;
}

Add it as a Component here in the Admin / Customize / Themes area:

(n.b. CSS in screenshot is an older/ version. CSS in text above is the one to use. Screenshot is just to show you where to paste it.)

(I only added for Desktop as the new stock layout probably makes sense on phones.)

And then add that Component to some or all of your Themes in the same area.

11 Likes