This component is working really well with categories banners now Category (or subcategory) + tag will display both the category and tag banner. Really awesome, thanks @awesomerobot!
Have a suggestion for the tag banner. There is an Discourse option ‘force lowercase tags’ which is enabled by default. If it is disabled, then tags can have upper and lowercase characters. I’ve used custom CSS as a work around (text-transform: capitalize) for capitalising first characters in the tag banner where needed, but would be nice if this component supported uppercase as well (like the Discourse tag drop down filter does currently). E.g. ‘Mytag’ and ‘MyTag’ will both be displayed as ‘mytag’ in the banner currently (without custom CSS).
حسنًا، لقد مر وقت طويل، ولكن إذا كنت أتذكر بشكل صحيح، فقد كانت المشكلة هي أن لافتة العلامة لم تكن تقوم بتكبير العلامة كما هو الحال في بقية واجهة المستخدم. سيبقى عنوان URL للعلامة بأحرف صغيرة، ولكن هذا متوقع ومثالي في رأيي.
شكرًا لإصلاح المكون الإضافي @awesomerobot، وتضمين خيار إزالة الشرطات السفلية لقد اختبرت للتو التزامًا في شوكتي لتكبير العلامات، فهو يعمل مع formattedTagName. على الرغم من أنني لست متأكدًا من كيفية عمل هذا مع formattedAdditionalTagNames. ولكن على أي حال، لاحظت بالفعل مشكلة. بعض العلامات هي اختصارات، مثل PDF. مجرد تكبير الحرف الأول لا يبدو صحيحًا. بالطبع، يمكن إدراج قائمة بالعلامات لتضمين كلمات مثل PDF وغيرها ثم التعامل معها بشكل مختلف وتطبيق toUpperCase() عليها بالكامل. ولكن بالنسبة للحالات التي تسمح لأعضاء المجتمع بإنشاء علامات، يصبح من الصعب الحفاظ على الاتساق. لذلك أعتقد أنني سأترك العلامات كما هي، بأحرف صغيرة. هل هناك حلول أذكى؟