In the Category list layout subcategories show up with their colour blob and, if restricted access, the lock icon before the title.
In the Category boxes layout then neither colour blob, nor lock icon show up, but if a logo is defined for the subcategory then it is shown (reduced to 20px by default).
This is inconsistent. There should at very least be an option to match the normal (list) appearance for the subcategory titles. Ideally there would also be the option to display the logo in the list layout as well.
Or even a plugin-outlet to enable us to modify this illogical behaviour (I’ve been looking and can’t find one - if there is please what is it?)
Note a couple of my subcategories there have logo images set and they are shown.
The layout is quite space wasteful - the Category Logo is restricted to 40px, but is centred above the title. The subcategory logos are not respecting their aspect ratio (the --aspect-image calculations are not working and are anyway unnecessary, if you just set a height the the aspect will be respected if there is space.).
The subcat logos are also a bit large forcing space between the lines.
The logo floats left of the title which is centred in the remaining space.
The subcategories are one per line with colour stripe and lock icon, but the subcategory logos are not show (which is consistent with the default).
In a box I don’t think it makes sense to try and cram two short subcat titles onto one line if there is space, looks better with separate line for each I think, but others might prefer to squeeze them up if there are a lot of subcats.
The subcat logos are shown at 18px ht with the correct aspect ratio at the end of the title. This is optional and they could be positioned between the lock icon and the text, but I prefer to have the stripes and titles lining up.
It would also make sense to have the option to use subcat logos in the other default layouts, but I’ve not bothered with those.
Here I am also using the Category Icons component (an icon is only set on the Niki Test subcategory) so the position of the stripe is slightly shifted to make the icon line up with it, and the icon colour is the stripe colour so it effectively is used in place of the stripe - but those are mods to that component, not the core.
Finally here is how it renders as subcategory boxes shown above the parent category topics if that is set.
Obviously at the moment there are no grandchild categories to show, but that will need accommodating. Also it might be better to float the logo vertically when there is a really long title - better perhaps to just keep category titles short!
So a mixture of HTML text/x-handlebars in /head for the theme effectively replacing “components/categories-boxes” and SCSS. I’m happy to send the code to anyone competent to test it and feed it in to github.
This works ok for my site, but there may be other consequences I haven’t spotted.
الفئات الفرعية-الفرعية غير ذات صلة إلى حد كبير بهذا الموضوع، لكنها قيد التطوير وستؤثر على نمط هذه الصفحة مستقبلاً… وهذا سببُ إدراجها. لستُ راضياً تماماً عن هذا النهج لعدة أسباب، لكنه تخطيط معقد.
نظراً للاختلاف الكبير في محتوى هذه الصناديق، قد نرغب في اقتطاع الفئات الفرعية-الفرعية في مرحلة ما… أو إجراء حسابات ارتفاع باستخدام JavaScript لتطبيق تخطيط بأسلوب الطوب حيث لا تكون جميع الصناديق متساوية الارتفاع؟ أحتاج إلى التفكير في الأمر أكثر.
بالنسبة للمستوى الفرعي الوحيد الحالي، قمت بالتبديل إلى نمط الشارات للفئات بدلاً من الرابط العام. كما حسّنت حسابات نسبة العرض إلى الارتفاع لدينا، حيث لم تكن تُستخدم فعلياً من قبل.
أعتقد أن الشعار الموجود فوق العنوان يستحوذ على قدر كبير من المساحة الرأسية، وهي مورد ثمين نظرًا لوجود وصف طويل جدًا وعدة فئات فرعية.
وبما أن إحدى مزايا تخطيط الصناديق هي إظهار المزيد من الفئات دون الحاجة إلى التمرير، فإنني أرى أنه سيكون من الجيد جدًا جعل الشعار والعنوان يظهران جنبًا إلى جنب افتراضيًا. بالطبع، يمكن تحقيق ذلك تقريبًا عبر تجاوزات CSS، لكن سيكون من الأفضل أن يكون الأمر صحيحًا بشكل افتراضي.
أما بالنسبة لمشكلة الفئة من الجيل الثالث، فأنا معجب بصناديقك الفرعية، لكن قد يكون من المفيد إضافة إعداد اختياري لعرض مستوى واحد فقط من الفئات الفرعية مع مؤشر عند وجود مستوى آخر — ربما نص صغير يقول “+N فئات فرعية” أسفل عنوان الفئة الفرعية في حال وجود فئات من الجيل الثالث.