ما وظيفة مكون السمة هذا؟
يأخذ هذا المكون قائمة التنقل القياسية للمواضيع وينقلها إلى شريط جانبي ثابت (طالما أن عرض متصفحك أكبر من 768 بكسل). كما تتوفر لديك في الإعدادات خيار إظهار الشريط الجانبي على اليمين.
لقد تحدثنا سابقًا عن هذا التخطيط قليلاً على Meta (Proposing a left-aligned slide out hamburger menu )، وكنت فضوليًا لمعرفة كيف سيكون الأمر ببساطة نقل قائمة التنقل الحالية إلى شريط جانبي.
تذكر أنه نظرًا لأن هذا تغيير جذري في التخطيط، فقد لا يكون هذا المكون متوافقًا فورًا مع السمات الأخرى.
معاينته على منشئ السمات
مستودع Github : https://github.com/awesomerobot/discourse-sidebar-nav.git
كيف أقوم بتثبيت مكون سمة؟
36 إعجابًا
nexo
7 أغسطس 2018، 11:34م
3
Could you “push” the sidebar further to the side?
It’s possible, but it’s currently designed to use the standard 1110px width that Discourse content exists within.
You could add CSS like this to make the content on pages with the sidebar wider
@media screen and (min-width: 1110px) {
.navigation-topics,
.categories-list,
.tags-page,
body[class*="category-"]:not(.archetype-regular):not(.archetype-banner) {
.wrap {
max-width: 1400px;
}
}
You could even go really crazy and set something like max-width: unset; and have a browser-wide topic list
11 إعجابًا
thaidb
(thaidb)
4 ديسمبر 2019، 8:14ص
12
Hello, i wanna display this sidebar on every topic and every category
When in homepage, top menu unstill display normal
How can i do that?
Everytime we wanna search, we must comback to homepage and search them, so lost a long time!
We should solve this problem!
Thank you!
3 إعجابات
nexo
10 فبراير 2020، 4:29ص
14
Incredible theme component!
I think the topic list sidebar should appear in tag lists as well, so when you view say subfolder the sidebar will remain consistent across all pages and serve to be more useful. This will be a very neat feature.
إعجاب واحد (1)
jord8on
(Jordan)
14 سبتمبر 2022، 4:25م
16
أتساءل أيضًا ما إذا كان هذا ممكنًا.
إعجاب واحد (1)