רשימת נושאי MD רכיב נייד

I’ve pushed a fix

3 לייקים

The 2nd one with the avatar on the right please :pray:

I’m glad the component was updated, I’m using it on all my instances.

לייק 1

The alternative looks good. Replacing the avatar with the badge is odd, to be honest. I would personally reduce the badge size, but yeah, it sounds good to me.

2 לייקים

I like this alternative.

2 לייקים

Ok I’ve updated the component to try this out. Let me know if you have any issue

Thanks again @Arkshine, without your work I would’ve let it down

2 לייקים

Do you think it’s necessary to display the number of views and likes below the title as well?
Because in the old version, they were displayed.

I don’t think it was, my guess is you added it directly in the component using plugin outlet

I don’t have the code right now, but if you really need it I can help

The base code should be something like this

<script type='text/x-handlebars' data-template-name='/connectors/topic-list-after-category/viewsandlikes'>
  <span class='topic-views'>{{d-icon "eye"}} **code**</span>
  <span class='topic-likes'>{{d-icon "heart"}} **code**</span>
</script>
לייק 1

Aha, really? I can’t remember if I made any changes either.
Maybe my memory is playing tricks on me.
But thank your help, i’ll change code from my side :sweat_smile:

לייק 1

By the way, it looks like the preview link doesn’t work.

2 לייקים

תיקנתי את זה, תודה

ניקיתי את עמוד יוצר הערכות שלי, אבל שכחתי לשתף את הרכיבים הללו שוב

3 לייקים

I think i’ve got it, i’ve pushed a fix, try to update and let me know if it’s good now

לייק 1

The online indicator is misplaced :slight_smile:


See on the first line

לייק 1

It’s tricky since the whos online plugin attach this indicator to the pull left side (which we deactivated) and the avatar is centered vertically.

I can get closer with these modifications (put these on a css mobile stylesheet), but it’s definitely far from perfect.

.pull-left {
  float: right;
}

html.whos-online-flair.mobile-view .topic-list-item.last-poster-online div.pull-left::before {
  top: -15px;
  left: unset;
  right: -50px;
}

The easiest solution would be to deactivate this indicator on mobile and on the topic list only

html.whos-online-flair.mobile-view .topic-list-item.last-poster-online div.pull-left::before {
  display: none;
}
2 לייקים

Hi Max. I wanna show some stuff under the title as well, like the number of likes and views. How did you pull that off?

Little update on the component, inside a category, the topic list was quite empty. I’ve added some infos with the author and number of posts.

Before

After

לייק 1

זה נראה טוב. התאמתי כמה צבעים כדי למנוע מראה צעקני מדי.

body.category .category-author-comments {
    color: var(--primary-medium) !important;
}
body.category .category-author-comments a {
    color: var(--primary-medium) !important;
}

This component will break soon:

I was a huge fan of it, but perhaps we can still tweak the layout in some ways using the mobile breakpoint?

This is getting annoying tbh, every year now we have to rebuild the entire component. It shouldn’t be this hard to maintain a theme

But I’ll look into it because I really have some issues with the default mobile theme

3 לייקים

7 years of using discourse everyday and still not used to the big avatar on the left which does NOT represents the author, but the last poster :lolsob:
I’ll cry tears of joy when it’s officially gone :face_with_tongue:

לייק 1

I like this component , the avastar on the left really distracts from reading

I hope it can continue to be maintained even paid(but not too expensive though, I probably can’t afford it :joy: )

לייק 1