Elenco argomenti MD Componente Mobile

Dopo aver lavorato a una piccola ridisegnazione delle pagine dell’elenco argomenti su desktop, ho sviluppato una versione mobile con alcune idee simili: più spazio per i titoli degli argomenti, una seconda riga con ulteriori informazioni e una colonna dedicata esclusivamente all’ultimo post.


Compatibilità

Questo componente del tema è compatibile con le funzioni tag, link in evidenza e tutte le funzionalità disponibili nella versione originale dell’elenco argomenti. Qualsiasi stile di presentazione delle categorie (punti elenco, barra, riquadro) dovrebbe funzionare con questo componente.

Il componente del tema è stato testato su alcune palette di colori e funziona con temi chiari, neutri o scuri.

Purtroppo, il componente del tema potrebbe non funzionare con plugin che modificano già la presentazione dell’elenco argomenti, come Topic List Previews.

Fatemelo sapere se riscontro problemi!

21 Mi Piace

Nice Plugin. Though a general Reccommendation can we have Theme & Components list min Discourse version? I am on Stable branch but do have a test sandbox for 2.5beta. @codinghorror?

I just did a specific branch for older versions.

When installing, use the link https://github.com/iunctis/md-topic-list-mobile the advanced options and add older-discourse

You’ll know if it works if the avatars on the right column works fine. In a few weeks, when the avatars will be broken, you’ll just have to reinstall the component without using the advanced option

2 Mi Piace

A direct comparison:

Default / Component

I like the fact that the last poster avatar is on the right.
On the default mobile layout, the big avatar just on the left of the topic title screams “author”.

Just out of curiosity, I looked at the scss file, any reason for which you didn’t use nested syntax provided by scss?

7 Mi Piace

Tried the advanced option. Still says disabled req 2.5 beta2

Mostly because I make more mistakes with nested syntax on css :grimacing:

But I could rewrite it in a few weeks when I’m more confident with the topic list design

@Heliosurge I edited the about.json file, it should be ok now

3 Mi Piace

Thank you for your awesome work. :beers::sunglasses::+1::sparkles:

2 Mi Piace

I pushed a little upgrade just now. No new feature but I added the compatibility with the new thumbnails functions.

The theme component is now fully compatible with these components:

4 Mi Piace

I love it, so clean. @Steven I was wondering if its possible too add with CSS this native feature when you click in total replies?

Not with css but the template can be corrected.

I personally only use this feature to access the first post but I shouldn’t impose my way of navigating to everyone. I’ll see if I can reinstore the feature

2 Mi Piace

I upgraded the component to reinstore this feature, I tested on two supports but if there’s any issue let me know

2 Mi Piace

Hey @Steven, it seems that the new messages notifications are shown twice. Once on the right of the topic title, once instead of the reply counter. Is that a bug or am I missing something here?

Very nice mobile topic view by the way. My users like it.

1 Mi Piace

It must come from the last update with the topic entrance button. I think it’ll be better to go back to the previous version. It’s not really adapted to the component.

I’ll upgrade in a few minutes

edit: Upgraded just now, let me know if it’s better

1 Mi Piace

Yes it works perfectly now, thank you it was fast :slight_smile:

1 Mi Piace

I think you shoud remove the tag emoji you added in front of the tag list:

It looks different on different os:

image

It may not fit the forum’s design, and it should honor desktop design choices (where there is no icon by default)

If you actually add a tag icon with tag icons component, it will look like this:

image

So I hid the emoji with CSS, but I think it shouldn’ be here in the first place :slight_smile:

How it is displayed on my forum now:

image

.md-tlm .discourse-tags::before {
    display: none;
}
.md-tlm .tl-replies {
    margin-right: 8px;
}
1 Mi Piace

Thanks for the feedback, I have major internet issues so I’m a bit behind on all discourse work.

I like the idea of the tag icon or emoji, but I’ll probably change the two theme components to a d-icon tag. At the same time, I’ll create a branch without any icon for a compatibility with the tag icons component

1 Mi Piace

Ciao Steven!
Sembra che ci siano alcuni problemi di layout con l’attuale versione di Discourse.
Ho creato un tema vuoto e ho incluso solo il componente MD Topic List Mobile e questo sembra essere effettivamente il problema.
Ecco la visualizzazione mobile:

C’è qualcosa di strano con i margini/padding.

2 Mi Piace

Grazie, ci darò un’occhiata subito.

Proverò a riscrivere il template per rimuovere anche il massimo delle classi personalizzate, penso che sia meglio con il ridisegno in corso nel core.

modifica: Nuovo commit, ho riscritto il template e il foglio di stile per renderli più facili da aggiornare in futuro.

Fammi sapere se hai qualche problema @Canapin

4 Mi Piace

Sembra perfetto. Grazie!

1 Mi Piace

Possiamo aggiungere il numero totale di “Mi piace” e visualizzazioni dell’argomento accanto al conteggio delle risposte?

2 Mi Piace