هل من الممكن إعادة ترتيب أعمدة قائمة المواضيع (الصفحة الرئيسية)

مرحبًا،

هل توجد طريقة لإعادة ترتيب الأعمدة كما هو موضح في لقطة الشاشة أدناه؟

ملاحظة: قمت بتبديل ترتيب العناصر (المستخدمين أولاً بدلاً من المواضيع) في متصفحي، وقمت بتغيير بعض الخصائص في تثبيت موزيلا للحصول على ما يظهر أعلاه.

السبب:
أجد أنه دائمًا ما يكون غريبًا (بالنسبة لي) عندما يضطر الأمر إلى النظر إلى أقصى اليسار لقراءة قائمة من العناصر على المواقع الإلكترونية. أجد أن المحتوى الذي يكون مركزًا إلى حد ما أسهل في الفهم، لكن قد يكون هذا غرابة شخصية عادية.

سأقدّر جدًا أي توجيهات حول أفضل طريقة للقيام بذلك؛

  • هل توجد طريقة للقيام بذلك من إعدادات ديسكورس؟

  • تغيير الترتيب مباشرةً من كود مصدر ديسكورس؟

  • تطوير تصميم صفحة رئيسية جديدة بالكامل (على غرار قوالب ووردبريس)؟

  • باستخدام CSS فقط؟

  • ???

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.

8 إعجابات

Thanks @awesomerobot

I think I can work with overriding the template.

من فضلك أخبرني كيف قمت بتغيير موضع عمود المستخدمين ونقلته إلى اليسار؟