Please tell me what to change in the files to change the location of the tags.
I think the title should come first.
Before:
After:
Please tell me what to change in the files to change the location of the tags.
I think the title should come first.
Before:
After:
Thank you very much for this wonderful TC. The appearance is really modern, simple and looks classy.
one question and request,
Can the search results display also have the same appearance? It would be really nice if the search results display was the same as TCâs display, considering that our users use the search feature a lot.
Once again, thank you very much for this work
That would be cool but unfortunately itâs a completely different area of the app. So itâs not possible to just apply it there as well. It would basically be a whole new component to achieve that.
Itâs a really great theme component, may I suggest some improvements including adding a settings page to edit the following:
Just want to share in case anyone else finds it helpful:
For me, I had the same issue with the max height of the topic card not being large enough if there is a thumbnail â when installing this as a theme component on the Minima theme.
This is the relevant CSS that I used to fix it:
// Increase max height for topic cards with thumbnail
.topic-card:has(.topic-card__thumbnail) {
max-height: 275px;
}
(The default height seemed to be 210px when I checked in the inspector)
Might need adjusting though â havenât checked on mobile widths.
I was wondering if this could be configured to choose which categories use the topic card would be great if this was used in theme as the topic thumbnails is not as friendly on mobile
Very nice component
Yes, this is what I meant with what I said before: depending on other parameters, 210px might be too small, or 275px might be too large. Itâs difficult to have a one-size fits all solution.
I might add in some more settings (such as choosing with category as requested by @Heliosurge) , including maybe a max-size setting so each forum can play with it.
I was wondering how this theme component looks on the âď¸ Discourse Air Theme, also combining topics with and without images. It looks promising but not there yet. Maybe CSS alone can fix the problems or maybe deeper work is needed.
Looks good on mobile!
I will uninstall it for now, but Iâll keep an eye on this topic because looks very good as intended.
And yes it would be a nice addition taking the category image when the topic doesnât have an image on its own.
What would it take for the Topic Cards component to show not only the s of a topic (as it does already now) but also views and comments, like the official Topic List Thumbnails in blog mode does?
Topic List Thumbnails
Topic Cards
Also, I think Topic List Thumbnailsâ use of the last activity date (â1dâ above) is better than the Topic Cardâs âPublishedâ date. Activity date is consistent with Discourseâs default and it provides more information to users. Also, the design implementation fits very nicely next to views, likes, and posts.
In case you care, hereâs some additional thoughts after many hours testing combinations between the Default theme, âď¸ Discourse Air Theme, Topic Cards and Topic List Thumbnails, plus quite some CSS tinkering.
Iâm settling on Topic Cards + Default theme, spiced up with the Modern Category + Group Boxes which brings cards for categories and fits with the topic cards.
Reasons:
Ok, maybe this question is simpler:
Currently the Suggested topics at the end of any page also shows the topics as cards. While I love the cards in the main pages, I think they are overblown at the end of all pages, and distract from the actual page content or discussion.
Is there a way to show a plain list of Suggested topics (as close as possible to the Default theme) without affecting the topic cards in the main pages?
Not at the moment, no. But itâs a good ask imo so you can always try making a feature request for it and maybe it will get picked up that way.
Ok, thank you. Done, also for my other request above:
And by the way, yesterday I tried this, because I ran into the same problem of content bleeding outside of the cards:
Didnât this mess the mobile view? I just tried it, and it messes it in my case.
Iâll have a look at that. At the minimum Iâll add a setting for the height, to make tweaking easier. Will set a reminder so I donât forget.
Some observations that may help limiting the height of topic cards. I havenât tested this thoroughly, but it seems thatâŚ
Just in case the explanation about the tags isnât clear. Here you can see how they start in a new line instead of starting next to the category as they do by default:
I was wondering whether it is technically possible to force a limit of 1 line to tags, just like there is a limit of 2 lines enforced on the title and of 3 lines on the description.
Most Discourse instances will use 0-5 tags and one line is more than enough for them. Some (like ours) might use tags extensively but we donât need to see them all on the topic cards. Just seeing the first ones is enough to give an idea.
Adding constraints to the number of lines would make the topic cards more reliable with different image sizes and aspect ratios:
FYI, we are going to tackle this on Add icons for Views and Replies, and Last Activity date in Topic Cards.
Ahh yes I forgot to comment here with my update on that: I had to add that code to just the desktop.scss
rather than common.scss
I canât edit my original comment anymore but I did update it in my theme component: Minima Adjustments for Topic Cards