رموز الفئات

Try this:

.select-kit .category-badge-icon {
    display: none;
}
إعجاب واحد (1)

That did it. Thank you for the help! I think Discourse navigation is fine as-is but for now I have to implement this small feature for these users and hopefully I can remove it at some point in the future. It’s more of a stop gap fix for the moment.

إعجابَين (2)

Hi,

Is it just me, or does this component not recognize name changes in slugs?

I doesn’t seem to recognize category slugs with changed names in my case, not right away anyway.

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

I use the dark mode component as well.

So that makes it a bit difficult to use this for the main categories. Because the icon shows up next to the main category. I now use “categoryColor”, which is red. That works for both the dark and light mode on my forum. But then the icon is not visible in the category selection menu. Because it has the same color as it. So there is just a blank space. Is there a way to fix this? Use an alternative color for the category dropdown menu? Because when “categoryColor” is used, the icon is not visible anymore. Would be great to have a white color for the icon there.

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

Ah, well, #cfcfcf works fine in both dark and light mode. Other option is also to use emojis of course :slight_smile:

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

I’d like to use an icon that is only available with a Font Awesome Pro subscription (specifically this icon). How can I do so with this theme component?

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

You need to first install this plugin:

FontAwesome Pro icons

And then the pro icons should be available for use for you, including for this component.

3 إعجابات

Thank you, Penar, I’ll take a look at this. I’m having some unrelated trouble rebuilding the forum, and haven’t been able to test this out yet.

إعجابَين (2)

لاحظت أن هذا يعمل فقط على الفئات، وليس الفئات الفرعية.

3 إعجابات

بالإضافة إلى ذلك، فإنه يعمل في كل مكان باستثناء حيث يتم عرض الفئات الفرعية كصناديق فوق قائمة الفئات. إنه يعمل بشكل جيد كصفوف فوق قائمة الفئات.

لسبب ما، لم يتم تطبيق categoryTitleLink على الصناديق.

أي فكرة عن سبب ذلك؟ أشك في أنه قد يكون مشكلة (صغيرة) في النواة.


لاحقًا…

تم إصلاح هذا بواسطة فريق Discourse الرائع. لسبب ما تحتاج إلى إزالة وإعادة تثبيت مكون السمة هذا لكي يعمل:

3 إعجابات

أود فعلاً لو أن هذا يسمح لي أيضًا بوضع الرموز التعبيرية بدلاً من أيقونات FontAwesome فقط. هل هذا ممكن حاليًا؟

المثال هو أنني أريد فئة ترحيب وأعتقد أن رمز الرموز التعبيرية :waving_hand:t2: يبدو طريقة قياسية بشكل متزايد للقيام بذلك.

إعجابَين (2)

يمكنك إضافة رمز تعبيري إلى اسم الفئة باستخدام أداة اختيار الرموز التعبيرية الأصلية في نظام التشغيل الخاص بك.

4 إعجابات

آه، هذا يبدو بسيطًا بما فيه الكفاية :smiling_face: شكرًا لك!

إعجابَين (2)

أين يتم ضبطه؟ تعديل تبديل رمز أو دالة

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

هل سيكون من الممكن استخدام صور تم تحميلها برابط URL؟

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

لا، لا أعتقد ذلك.

3 إعجابات

لقد حددت أيقونة Font Awesome لاستبدال أيقونة القفل الافتراضية. ومن المثير للاهتمام أنها تبدو أصغر من الأيقونات الأخرى… مما يؤدي إلى محاذاة غير متناسقة للنص (بالإضافة إلى كون الأيقونة نفسها صغيرة جدًا) في قوائم فئات القوائم المنسدلة وفي قائمة الفئات في قائمة ≡…

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

كيف يمكنني تغيير اللون من البرتقالي إلى الأزرق؟

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

قدم لي فريق Discourse حلاً بديلاً يمكن إضافته إلى CSS الخاص بالمظهر:

// FIX - New lock icon on private categories
svg.fa.d-icon.d-icon-user-plus.svg-icon.svg-string {
    font-size: 1.3em;
    align-self: center;
}
إعجابَين (2)

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

beta-testing
beta-testing-bugs
beta-testing-features

ثم أقوم بإضافة إدخالات مكونات السمة التالية:

beta-testing,trash-alt,categoryColour
beta-testing-bugs,trash-alt,categoryColour
beta-testing-features,trash-alt,categoryColour

فقط الفئة الأولى تأخذ الأيقونة “trash-alt” ولا تعرض الأخريات أيقونة.
إذا قمت بإزالة الواصلات، يبدو أن الأمر يعمل.

categories:
beta-testing
betatestingbugs
betatestingfeatures

theme component entries

beta-testing,trash-alt,categoryColour
betatestingbugs,trash-alt,categoryColour
betatestingfeatures,trash-alt,categoryColour

هذا حل بديل، ولكنه يكسر إلى حد ما اصطلاح التسمية للأسماء المختصرة. هل أفعل شيئًا خاطئًا أم أن هذه مشكلة؟

إعجابَين (2)