Nota: ho invertito l’ordine degli elementi (prima gli utenti invece dei topic) nel mio browser e modificato alcune proprietà nell’installazione di Mozilla per ottenere quanto sopra.
Motivazione:
Per me è sempre strano dover guardare all’estrema sinistra per leggere un elenco di elementi sui siti web. Trovo che i contenuti leggermente centrati siano più facili da leggere, ma potrebbe essere una mia stranezza personale.
Apprezzerei molto dei suggerimenti sulla migliore modalità per procedere:
È possibile farlo tramite le impostazioni di Discourse?
Modificare direttamente l’ordine nel codice sorgente di Discourse?
Sviluppare un nuovo design per la homepage (simile ai temi di WordPress)?
There’s no way to do this with the settings, and if you directly edit the source of Discourse you’ll lose progress whenever you update.
I think there are two ways this could work, both of these require using a theme so you can upgrade Discourse without losing your work:
CSS only: It wouldn’t be a completely trivial task because you’d be editing how the table layout works. The way I would approach it would be by defining each row in the table (tr) as a flex item, you’d then be able to order the cells in the row (td) by using the order property of flex box.
Overriding the topic-list template. This is quicker to do, but would likely require more ongoing maintenance to keep up with updates. You can take a look at this theme here to get an idea of how it works: Sam's Simple Theme. Specifically, this file in that theme takes the core Discourse topic-list template and overrides it.