صناديق مع فئات فرعية في قائمة نقطية

Hello,

I currently have the setting “Boxes with Subcategories” turned on, but I have a lot of subcategories, causing it to look a little crowded. (see image)

Is there a way I can make the subcategories into a bulleted list? Or move them around manually rather than using the “Reorder Categories” feature? Or even if I could make the margins on each side smaller so that more could fit on one line?

Thank you!

إعجاب واحد (1)

:warning: تعديل: اعتبارًا من 11/9/2023: سيتم إيقاف أنماط الفئات بخلاف النقاط المربعة أو ستكون غير متاحة في المستقبل القريب.


أنا أرد على هذا لاحقًا، ولكن الأفضل متأخرًا من عدمه… :slight_smile:

لتكديسها فوق بعضها البعض:

.category-box .subcategories {
    flex-direction: column;
    .subcategory {
        .subcategory-image-placeholder {
            display: none;
        }
    }
}

بالنسبة للقائمة النقطية، سيعتمد ذلك على النمط الذي تستخدمه لفئاتك. لنفترض أنك تستخدم “نقطة”:
image

سيبدو الأمر كالتالي:

إذا كنت ترغب في الاحتفاظ بالنقاط الملونة للفئات الرئيسية ولكن ليس للفئات الفرعية:

باستخدام حرف النقطة الحقيقي:

.category-box .subcategories {
    flex-direction: column;
    .subcategory {
        &:before {
            content: "•";
            margin-right: .25em;
            font-size: 1.5em;
            line-height: 0;
        }
        .badge-category-bg {
            display: none;
        }
        .subcategory-image-placeholder {
            display: none;
        }
    }
}

بشكل أبسط، إعادة تشكيل نقطة فئة Discourse الحالية:

.category-box .subcategories {
    flex-direction: column;
    .subcategory {
        .badge-category-bg {
            border-radius: 50%;
        }
        .subcategory-image-placeholder {
            display: none;
        }
    }
}

إعجابَين (2)